Remove globals usage from static-net-filtering.js (#3841)

This commit is contained in:
Manish Jethani 2021-08-20 17:24:05 +05:30 committed by GitHub
parent 02a17af810
commit ab13903019
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 2 deletions

View File

@ -25,7 +25,6 @@
/******************************************************************************/
import globals from './globals.js';
import { queueTask, dropTask } from './tasks.js';
import HNTrieContainer from './hntrie.js';
import { sparseBase64 } from './base64-custom.js';
@ -4368,7 +4367,7 @@ FilterContainer.prototype.filterQuery = function(fctxt) {
let hpos = url.indexOf('#', qpos + 1);
if ( hpos === -1 ) { hpos = url.length; }
const params = new Map(
new globals.URLSearchParams(url.slice(qpos + 1, hpos))
new URLSearchParams(url.slice(qpos + 1, hpos))
);
const inParamCount = params.size;
const out = [];