From 9bc029b72c1375f737e742703099603d0975a4a2 Mon Sep 17 00:00:00 2001 From: Raymond Hill Date: Sat, 31 Mar 2018 15:02:12 -0400 Subject: [PATCH] allow un-whitelisting in non-advanced user mode --- src/js/popup.js | 10 +--------- 1 file changed, 1 insertion(+), 9 deletions(-) diff --git a/src/js/popup.js b/src/js/popup.js index 4fa02ba88..5a5106bed 100644 --- a/src/js/popup.js +++ b/src/js/popup.js @@ -411,9 +411,7 @@ var renderPopup = function() { elem.classList.toggle('advancedUser', popupData.advancedUserEnabled); elem.classList.toggle( 'off', - popupData.pageURL === '' || - !popupData.netFilteringSwitch || - popupData.pageHostname === 'behind-the-scene' && !popupData.advancedUserEnabled + popupData.pageURL === '' || !popupData.netFilteringSwitch ); // If you think the `=== true` is pointless, you are mistaken @@ -649,12 +647,6 @@ messaging.addChannelListener('popup', onPopupMessage); var toggleNetFilteringSwitch = function(ev) { if ( !popupData || !popupData.pageURL ) { return; } - if ( - popupData.pageHostname === 'behind-the-scene' && - !popupData.advancedUserEnabled - ) { - return; - } messaging.send( 'popupPanel', {