Skip to content

Commit 9bc029b

Browse files
committed
allow un-whitelisting in non-advanced user mode
1 parent 94679b3 commit 9bc029b

File tree

1 file changed

+1
-9
lines changed

1 file changed

+1
-9
lines changed

src/js/popup.js

Lines changed: 1 addition & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -411,9 +411,7 @@ var renderPopup = function() {
411411
elem.classList.toggle('advancedUser', popupData.advancedUserEnabled);
412412
elem.classList.toggle(
413413
'off',
414-
popupData.pageURL === '' ||
415-
!popupData.netFilteringSwitch ||
416-
popupData.pageHostname === 'behind-the-scene' && !popupData.advancedUserEnabled
414+
popupData.pageURL === '' || !popupData.netFilteringSwitch
417415
);
418416

419417
// If you think the `=== true` is pointless, you are mistaken
@@ -649,12 +647,6 @@ messaging.addChannelListener('popup', onPopupMessage);
649647

650648
var toggleNetFilteringSwitch = function(ev) {
651649
if ( !popupData || !popupData.pageURL ) { return; }
652-
if (
653-
popupData.pageHostname === 'behind-the-scene' &&
654-
!popupData.advancedUserEnabled
655-
) {
656-
return;
657-
}
658650
messaging.send(
659651
'popupPanel',
660652
{

0 commit comments

Comments
 (0)