1
0
mirror of https://github.com/gorhill/uBlock.git synced 2024-11-06 19:02:30 +01:00

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

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);
}
}
}