1
0
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:
nobody 2022-01-30 09:33:21 +01:00
parent b61a032db1
commit b905f01910
No known key found for this signature in database
GPG Key ID: 8F6DE3D614FCFD7A

View File

@ -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;