mirror of
https://github.com/status-im/MyCrypto.git
synced 2025-01-24 01:49:06 +00:00
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) {
|
||||
window.webContents.on('did-fail-load', () => {
|
||||
setTimeout(() => {
|
||||
|
Loading…
x
Reference in New Issue
Block a user