mirror of
https://github.com/gorhill/uBlock.git
synced 2026-03-11 09:04:36 +00:00
Code review
This commit is contained in:
parent
af054f7980
commit
ad2add4676
1 changed files with 1 additions and 2 deletions
|
|
@ -317,7 +317,7 @@ export class ScriptletFilteringEngineEx extends ScriptletFilteringEngine {
|
|||
filters: scriptletDetails.filters,
|
||||
};
|
||||
|
||||
if ( request.nocache !== true ) {
|
||||
if ( hostname !== '' && request.nocache !== true ) {
|
||||
this.scriptletCache.add(hostname, cachedScriptletDetails);
|
||||
}
|
||||
|
||||
|
|
@ -328,7 +328,6 @@ export class ScriptletFilteringEngineEx extends ScriptletFilteringEngine {
|
|||
if ( typeof details.frameId !== 'number' ) { return; }
|
||||
|
||||
const hostname = hostnameFromURI(details.url);
|
||||
if ( hostname === '' ) { return; }
|
||||
const domain = domainFromHostname(hostname);
|
||||
|
||||
const scriptletDetails = this.retrieve({
|
||||
|
|
|
|||
Loading…
Reference in a new issue