mirror of
https://github.com/gorhill/uBlock.git
synced 2024-11-24 19:33:01 +01:00
This commit is contained in:
parent
c999b278c3
commit
a57450e1a0
@ -423,14 +423,17 @@ var renderPopup = function() {
|
||||
}
|
||||
|
||||
let elem = document.body;
|
||||
elem.classList.toggle('advancedUser', popupData.advancedUserEnabled);
|
||||
elem.classList.toggle(
|
||||
'advancedUser',
|
||||
popupData.advancedUserEnabled === true
|
||||
);
|
||||
elem.classList.toggle(
|
||||
'off',
|
||||
popupData.pageURL === '' || !popupData.netFilteringSwitch
|
||||
popupData.pageURL === '' || popupData.netFilteringSwitch !== true
|
||||
);
|
||||
|
||||
let canElementPicker = popupData.canElementPicker &&
|
||||
popupData.netFilteringSwitch;
|
||||
let canElementPicker = popupData.canElementPicker === true &&
|
||||
popupData.netFilteringSwitch === true;
|
||||
uDom.nodeFromId('gotoPick').classList.toggle('enabled', canElementPicker);
|
||||
uDom.nodeFromId('gotoZap').classList.toggle('enabled', canElementPicker);
|
||||
|
||||
@ -489,11 +492,20 @@ var renderPopup = function() {
|
||||
vAPI.localStorage.setItem('popupFirewallPane', dfPaneVisibleStored);
|
||||
}
|
||||
|
||||
uDom.nodeFromId('panes').classList.toggle('dfEnabled', dfPaneVisible);
|
||||
uDom.nodeFromId('panes').classList.toggle(
|
||||
'dfEnabled',
|
||||
dfPaneVisible === true
|
||||
);
|
||||
|
||||
elem = uDom.nodeFromId('firewallContainer');
|
||||
elem.classList.toggle('minimized', popupData.firewallPaneMinimized);
|
||||
elem.classList.toggle('colorBlind', popupData.colorBlindFriendly);
|
||||
elem.classList.toggle(
|
||||
'minimized',
|
||||
popupData.firewallPaneMinimized === true
|
||||
);
|
||||
elem.classList.toggle(
|
||||
'colorBlind',
|
||||
popupData.colorBlindFriendly === true
|
||||
);
|
||||
|
||||
// Build dynamic filtering pane only if in use
|
||||
if ( dfPaneVisible ) {
|
||||
|
Loading…
Reference in New Issue
Block a user