diff --git a/app/src/components/mainWindow/mainWindow.js b/app/src/components/mainWindow/mainWindow.js index cf2e1e1..b0251b7 100644 --- a/app/src/components/mainWindow/mainWindow.js +++ b/app/src/components/mainWindow/mainWindow.js @@ -58,7 +58,7 @@ function maybeInjectCss(browserWindow) { // we have to inject the css in onHeadersReceived so they're early enough // will run multiple times, so did-finish-load will remove this handler browserWindow.webContents.session.webRequest.onHeadersReceived( - [], // Pass an empty filter list; null will not match _any_ urls + { urls: [] }, // Pass an empty filter list; null will not match _any_ urls onHeadersReceived, ); });