mirror of
https://codeberg.org/nobody/LocalCDN.git
synced 2024-12-25 17:42:37 +01:00
Improve popup menu
This commit is contained in:
parent
b61a032db1
commit
b905f01910
@ -118,6 +118,10 @@ popup._renderDomainAllowlistPanel = function () {
|
||||
googleFontsToggleElement = document.getElementById('google-fonts-toggle-switch');
|
||||
googleFontsToggleStyle = document.getElementById('toggle-switch-google-fonts');
|
||||
|
||||
if (popup._blockGoogleFonts === false) {
|
||||
document.getElementById('div-google-fonts').hidden = true;
|
||||
}
|
||||
|
||||
if (popup._domainIsAllowlisted === true) {
|
||||
manipulateDOMToggleElement.disabled = true;
|
||||
manipulateDOMToggleStyle.setAttribute('class', 'slider-disabled');
|
||||
@ -130,10 +134,6 @@ popup._renderDomainAllowlistPanel = function () {
|
||||
return;
|
||||
}
|
||||
|
||||
if (popup._blockGoogleFonts === false) {
|
||||
document.getElementById('div-google-fonts').hidden = true;
|
||||
}
|
||||
|
||||
googleFontsToggleStyle.setAttribute('class', 'slider');
|
||||
googleFontsToggleElement.disabled = false;
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user