1
0
mirror of https://codeberg.org/nobody/LocalCDN.git synced 2025-06-05 21:49:31 +02:00

Improve popup menu

This commit is contained in:
nobody
2022-01-30 09:33:21 +01:00
parent b61a032db1
commit b905f01910

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;