mirror of https://github.com/gorhill/uBlock.git
Fix regression with no-cosmetic-filtering switch
Related commit:
- c4b7ee80ea
This commit is contained in:
parent
895aa34134
commit
01cbe7520d
|
@ -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 New Issue