fix page reload diversion for app reload
This commit is contained in:
parent
0a5cc7a700
commit
eaec4136d0
1 changed files with 4 additions and 1 deletions
|
|
@ -53,7 +53,10 @@ function createWindow() {
|
||||||
// prevent "other" urls from opening inside Electron (alerts are problematic)
|
// prevent "other" urls from opening inside Electron (alerts are problematic)
|
||||||
mainWindow.webContents.on('will-navigate', (event, url) => {
|
mainWindow.webContents.on('will-navigate', (event, url) => {
|
||||||
// console.log('DIVERT', url);
|
// console.log('DIVERT', url);
|
||||||
if (url.endsWith('/mesh') || url.endsWith('/kiri')) {
|
if (url.endsWith('/kiri') || url.endsWith('/kiri/')) {
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
if (url.endsWith('/mesh') || url.endsWith('/mesh/')) {
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
event.preventDefault();
|
event.preventDefault();
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue