mirror of
https://github.com/gorhill/uBlock.git
synced 2024-11-10 09:07:54 +01:00
Fix regression with no-cosmetic-filtering switch
Related commit:
- c4b7ee80ea
This commit is contained in:
parent
895aa34134
commit
01cbe7520d
1 changed files with 7 additions and 5 deletions
|
@ -579,12 +579,14 @@ const matchBucket = function(url, hostname, bucket, start) {
|
|||
case 'no-scripting':
|
||||
this.updateToolbarIcon(details.tabId, 0b100);
|
||||
break;
|
||||
case 'no-cosmetic-filtering':
|
||||
this.scriptlets.injectDeep(
|
||||
details.tabId,
|
||||
details.state ? 'cosmetic-off' : 'cosmetic-on'
|
||||
);
|
||||
case 'no-cosmetic-filtering': {
|
||||
const scriptlet = details.state ? 'cosmetic-off' : 'cosmetic-on';
|
||||
vAPI.tabs.executeScript(details.tabId, {
|
||||
file: `/js/scriptlets/${scriptlet}.js`,
|
||||
allFrames: true,
|
||||
});
|
||||
break;
|
||||
}
|
||||
case 'no-large-media':
|
||||
const pageStore = this.pageStoreFromTabId(details.tabId);
|
||||
if ( pageStore !== null ) {
|
||||
|
|
Loading…
Reference in a new issue