[mv3] Drop useless property in generated content scripts

This commit is contained in:
Raymond Hill 2023-06-18 14:34:43 -04:00
parent bd7318da3c
commit 3b70d0e134
No known key found for this signature in database
GPG Key ID: 25E1490B761470C2
1 changed files with 2 additions and 1 deletions

View File

@ -637,7 +637,8 @@ async function processDeclarativeCosmeticFilters(assetDetails, mapin) {
mapin.forEach((details, jsonSelector) => {
const selector = JSON.parse(jsonSelector);
if ( selector.cssable !== true ) { return; }
declaratives.set(jsonSelector, details);
selector.cssable = undefined;
declaratives.set(JSON.stringify(selector), details);
});
if ( declaratives.size === 0 ) { return 0; }