Code review

This commit is contained in:
Raymond Hill 2025-04-12 08:08:12 -04:00
parent af054f7980
commit ad2add4676
No known key found for this signature in database
GPG key ID: 25E1490B761470C2

View file

@ -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({