bootstrap: tweak webRequest handling

This commit is contained in:
Ducko 2022-09-29 16:01:43 +01:00
parent 5c68a2a78f
commit 3314bc9c28
1 changed files with 1 additions and 1 deletions

2
src/bootstrap.js vendored
View File

@ -78,7 +78,7 @@ const startUpdate = () => {
session.defaultSession.webRequest.onBeforeRequest({ urls: [
oaConfig.noTrack ? 'https://*/api/v9/science' : '',
oaConfig.noTyping ? 'https://*/api/*/typing' : ''
].filter(x => x) }, async (e, cb) => cb({ cancel: true }));
].filter(x => x) }, (e, cb) => cb({ cancel: true }));
const startMin = process.argv?.includes?.('--start-minimized');