mirror of
https://github.com/gorhill/uBlock.git
synced 2024-09-15 15:32:28 +02:00
Use const
when value does not change
This commit is contained in:
parent
c7bed84ab8
commit
d536c7ab11
@ -3558,7 +3558,7 @@ FilterContainer.prototype.filterQuery = function(fctxt) {
|
|||||||
const directives = this.matchAndFetchModifiers(fctxt, 'queryprune');
|
const directives = this.matchAndFetchModifiers(fctxt, 'queryprune');
|
||||||
if ( directives === undefined ) { return; }
|
if ( directives === undefined ) { return; }
|
||||||
const url = fctxt.url;
|
const url = fctxt.url;
|
||||||
let qpos = url.indexOf('?');
|
const qpos = url.indexOf('?');
|
||||||
if ( qpos === -1 ) { return; }
|
if ( qpos === -1 ) { return; }
|
||||||
const params = new self.URLSearchParams(url.slice(qpos + 1));
|
const params = new self.URLSearchParams(url.slice(qpos + 1));
|
||||||
const out = [];
|
const out = [];
|
||||||
|
Loading…
Reference in New Issue
Block a user