From 20dc44bc61a684a31e2c360bc60deeef6022c1c2 Mon Sep 17 00:00:00 2001 From: jliddev Date: Tue, 11 Jan 2022 15:42:37 -0600 Subject: [PATCH] Allow weview reload to happen --- wowup-electron/app/main.ts | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) 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) => {