mirror of
https://github.com/gorhill/uBlock.git
synced 2024-11-10 01:02:08 +01:00
Fix regression in looking up scriptlets for entity
Related feedback: https://www.reddit.com/r/uBlockOrigin/comments/19fihsu/
This commit is contained in:
parent
663df76e8a
commit
567508f619
1 changed files with 5 additions and 6 deletions
|
@ -349,17 +349,16 @@ export class ScriptletFilteringEngineEx extends ScriptletFilteringEngine {
|
|||
if ( typeof details.frameId !== 'number' ) { return; }
|
||||
|
||||
const hostname = hostnameFromURI(details.url);
|
||||
const domain = domainFromHostname(hostname);
|
||||
|
||||
const request = {
|
||||
const scriptletDetails = this.retrieve({
|
||||
tabId: details.tabId,
|
||||
frameId: details.frameId,
|
||||
url: details.url,
|
||||
hostname,
|
||||
domain: domainFromHostname(hostname),
|
||||
entity: entityFromDomain(hostname),
|
||||
};
|
||||
|
||||
const scriptletDetails = this.retrieve(request);
|
||||
domain,
|
||||
entity: entityFromDomain(domain),
|
||||
});
|
||||
if ( scriptletDetails === undefined ) {
|
||||
contentScriptRegisterer.unregister(hostname);
|
||||
return;
|
||||
|
|
Loading…
Reference in a new issue