MC-01-004: Prevent Navigation on Main Electron Window (#2022)

This commit is contained in:
Danny Skubak 2018-07-06 12:02:33 -04:00 committed by Daniel Ternyak
parent e5e5dd8274
commit e17c94333b
1 changed files with 4 additions and 0 deletions

View File

@ -67,6 +67,10 @@ export default function getWindow() {
});
});
window.webContents.on('will-navigate', (event: any) => {
event.preventDefault();
});
if (isDevelopment) {
window.webContents.on('did-fail-load', () => {
setTimeout(() => {