Skip to content

Commit

Permalink
bootstrap: fix new blocking system
Browse files Browse the repository at this point in the history
  • Loading branch information
CanadaHonk committed Sep 29, 2022
1 parent a6bd665 commit 1f0ac0f
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/bootstrap.js
Original file line number Diff line number Diff line change
Expand Up @@ -75,9 +75,9 @@ const startCore = () => {
};

const startUpdate = () => {
session.defaultSession.webRequest.onBeforeRequest({ urls: [
oaConfig.noTrack ? 'https://*/api/v9/science' : '',
oaConfig.noTyping ? 'https://*/api/*/typing' : ''
session.defaultSession.webRequest.onBeforeRequest({ urls: [ 'https://a.invalid/a',
oaConfig.noTrack !== false ? 'https://*/api/v9/science' : '',
oaConfig.noTyping === true ? 'https://*/api/*/typing' : ''
].filter(x => x) }, (e, cb) => cb({ cancel: true }));

const startMin = process.argv?.includes?.('--start-minimized');
Expand Down

0 comments on commit 1f0ac0f

Please sign in to comment.