Fix ability to set temporary cosmetic filter exceptions

Regression from:
- 35aefed926
This commit is contained in:
Raymond Hill 2020-09-19 10:00:21 -04:00
parent 07933b033d
commit c181ab2911
No known key found for this signature in database
GPG Key ID: 25E1490B761470C2
1 changed files with 2 additions and 4 deletions

View File

@ -902,11 +902,11 @@ FilterContainer.prototype.retrieveGenericSelectors = function(request) {
const injected = [];
if ( simpleSelectors.size !== 0 ) {
injected.push(Array.from(simpleSelectors).join(',\n'));
injected.push(...simpleSelectors);
simpleSelectors.clear();
}
if ( complexSelectors.size !== 0 ) {
injected.push(Array.from(complexSelectors).join(',\n'));
injected.push(...complexSelectors);
complexSelectors.clear();
}
@ -917,7 +917,6 @@ FilterContainer.prototype.retrieveGenericSelectors = function(request) {
this.addToSelectorCache({
cost: request.surveyCost || 0,
hostname: request.hostname,
injectedHideFilters: '',
selectors: injected,
type: 'cosmetic',
});
@ -1018,7 +1017,6 @@ FilterContainer.prototype.retrieveSpecificSelectors = function(
) {
out.exceptedFilters.push(exception);
}
}
}