mirror of
https://github.com/WowUp/WowUp.git
synced 2026-04-22 15:00:38 -04:00
Allow weview reload to happen
This commit is contained in:
@@ -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) => {
|
||||
|
||||
Reference in New Issue
Block a user