MC-01-004: Prevent Navigation on Main Electron Window (#2022)
This commit is contained in:
parent
e5e5dd8274
commit
e17c94333b
|
@ -67,6 +67,10 @@ export default function getWindow() {
|
||||||
});
|
});
|
||||||
});
|
});
|
||||||
|
|
||||||
|
window.webContents.on('will-navigate', (event: any) => {
|
||||||
|
event.preventDefault();
|
||||||
|
});
|
||||||
|
|
||||||
if (isDevelopment) {
|
if (isDevelopment) {
|
||||||
window.webContents.on('did-fail-load', () => {
|
window.webContents.on('did-fail-load', () => {
|
||||||
setTimeout(() => {
|
setTimeout(() => {
|
||||||
|
|
Loading…
Reference in New Issue