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
1 changed files with 4 additions and 4 deletions

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;