mirror of
https://github.com/gorhill/uBlock.git
synced 2024-09-21 05:16:39 +02:00
start contentscript: don't query href twice
This commit is contained in:
parent
d7587745cc
commit
fbddda46bb
1 changed files with 3 additions and 2 deletions
|
@ -156,11 +156,12 @@ var hideElements = function(selectors) {
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
|
||||||
|
var url = window.location.href;
|
||||||
localMessager.send(
|
localMessager.send(
|
||||||
{
|
{
|
||||||
what: 'retrieveDomainCosmeticSelectors',
|
what: 'retrieveDomainCosmeticSelectors',
|
||||||
pageURL: window.location.href,
|
pageURL: url,
|
||||||
locationURL: window.location.href
|
locationURL: url
|
||||||
},
|
},
|
||||||
filteringHandler
|
filteringHandler
|
||||||
);
|
);
|
||||||
|
|
Loading…
Reference in a new issue