[noTrack] Blocking improvements (#108)

* [noTrack] Also block metrics call

* [noTrack] Wildcard api version for science call
This commit is contained in:
alsoGAMER 2023-01-13 16:05:43 +01:00 committed by GitHub
parent c2cd5449bd
commit 40b27dd1b8
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 1 deletions

3
src/bootstrap.js vendored
View File

@ -75,7 +75,8 @@ const startCore = () => {
const startUpdate = () => {
const urls = [
oaConfig.noTrack !== false ? 'https://*/api/v9/science' : '',
oaConfig.noTrack !== false ? 'https://*/api/*/science' : '',
oaConfig.noTrack !== false ? 'https://*/api/*/metrics' : '',
oaConfig.noTyping === true ? 'https://*/api/*/typing' : ''
].filter(x => x);