console.error(e);
alert(e.message);
}
/*
const events = [
// 'did-finish-load',
'did-fail-load',
// 'did-frame-finish-load',
'did-start-loading',
// 'did-stop-loading',
// 'did-get-response-details',
'did-get-redirect-request',
'did-get-redirect-request',
// 'dom-ready',
// 'page-favicon-updated',
'new-window',
'will-navigate',
'did-navigate',
'did-navigate-in-page',
'will-prevent-unload',
'crashed',
'plugin-crashed',
'destroyed',
'before-input-event',
'devtools-opened',
'devtools-closed',
'devtools-focused',
'certificate-error',
'select-client-certificate',
'login',
'found-in-page',
'media-started-playing',
'media-paused',
'did-change-theme-color',
// 'update-target-url',
'cursor-changed',
'context-menu',
'select-bluetooth-device',
'paint',
'devtools-reload-page',
'will-attach-webview',
'did-attach-webview',
// 'console-message',
]
events.forEach(event => {
webview.addEventListener(event, function() {
console.groupCollapsed(`NGIVR-ELECTRON-EVENT: ${event}`)
console.log(arguments);
console.groupEnd();
})
})
*/
}