summaryrefslogtreecommitdiffstats
path: root/src/js/contextmenu.js
diff options
context:
space:
mode:
authorDaniel Baumann <daniel.baumann@progress-linux.org>2024-04-17 05:50:18 +0000
committerDaniel Baumann <daniel.baumann@progress-linux.org>2024-04-17 05:50:18 +0000
commit55a5d29a66503248916f249ad2a1d8b37cde5a03 (patch)
treea3beb6a90dd3bdaaf67ecb05d42152a494aff946 /src/js/contextmenu.js
parentAdding upstream version 1.55.0+dfsg. (diff)
downloadublock-origin-upstream.tar.xz
ublock-origin-upstream.zip
Adding upstream version 1.57.0+dfsg.upstream/1.57.0+dfsgupstream
Signed-off-by: Daniel Baumann <daniel.baumann@progress-linux.org>
Diffstat (limited to 'src/js/contextmenu.js')
-rw-r--r--src/js/contextmenu.js6
1 files changed, 5 insertions, 1 deletions
diff --git a/src/js/contextmenu.js b/src/js/contextmenu.js
index abf0582..788b62b 100644
--- a/src/js/contextmenu.js
+++ b/src/js/contextmenu.js
@@ -200,7 +200,11 @@ let currentBits = 0;
const update = function(tabId = undefined) {
let newBits = 0;
- if ( µb.userSettings.contextMenuEnabled && tabId !== undefined ) {
+ if (
+ µb.userSettings.contextMenuEnabled &&
+ µb.userFiltersAreEnabled() &&
+ tabId !== undefined
+ ) {
const pageStore = µb.pageStoreFromTabId(tabId);
if ( pageStore && pageStore.getNetFilteringSwitch() ) {
if ( pageStore.shouldApplySpecificCosmeticFilters(0) ) {