mirror of https://github.com/gorhill/uBlock.git
[mv3] Drop useless property in generated content scripts
This commit is contained in:
parent
bd7318da3c
commit
3b70d0e134
|
@ -637,7 +637,8 @@ async function processDeclarativeCosmeticFilters(assetDetails, mapin) {
|
||||||
mapin.forEach((details, jsonSelector) => {
|
mapin.forEach((details, jsonSelector) => {
|
||||||
const selector = JSON.parse(jsonSelector);
|
const selector = JSON.parse(jsonSelector);
|
||||||
if ( selector.cssable !== true ) { return; }
|
if ( selector.cssable !== true ) { return; }
|
||||||
declaratives.set(jsonSelector, details);
|
selector.cssable = undefined;
|
||||||
|
declaratives.set(JSON.stringify(selector), details);
|
||||||
});
|
});
|
||||||
if ( declaratives.size === 0 ) { return 0; }
|
if ( declaratives.size === 0 ) { return 0; }
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue