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