fix page reload diversion for app reload

This commit is contained in:
Stewart Allen 2025-02-03 18:22:19 -05:00
commit eaec4136d0

View file

@ -53,7 +53,10 @@ function createWindow() {
// prevent "other" urls from opening inside Electron (alerts are problematic)
mainWindow.webContents.on('will-navigate', (event, 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;
}
event.preventDefault();