diff --git a/wowup-electron/app/main.ts b/wowup-electron/app/main.ts index 119c821e..7853e1a1 100644 --- a/wowup-electron/app/main.ts +++ b/wowup-electron/app/main.ts @@ -326,7 +326,11 @@ function createWindow(): BrowserWindow { webContents.on("will-navigate", (evt, url) => { log.debug("[webview] will-navigate", url); - evt.preventDefault(); // block the webview from navigating at all + if (webContents.getURL() === url) { + log.debug(`[webview] reload detected`); + } else { + evt.preventDefault(); // block the webview from navigating at all + } }); webContents.setWindowOpenHandler((details) => {