[mv3] Minor code review

This commit is contained in:
Raymond Hill 2025-08-16 15:34:06 -04:00
parent 5957656a5b
commit 4194fdec4b
No known key found for this signature in database
GPG key ID: 25E1490B761470C2
2 changed files with 4 additions and 0 deletions

View file

@ -60,6 +60,8 @@ self.isolatedAPI.forEachHostname(lookupAll, {
});
proceduralImports.length = 0;
if ( selectors.length === 0 ) { return; }
const exceptedSelectors = exceptions.length !== 0
? selectors.filter(a => exceptions.includes(JSON.stringify(a)) === false)
: selectors;

View file

@ -58,6 +58,8 @@ self.isolatedAPI.forEachHostname(lookupAll, {
specificImports.length = 0;
if ( selectors.length === 0 ) { return; }
const exceptedSelectors = exceptions.length !== 0
? selectors.filter(a => exceptions.includes(a) === false)
: selectors;