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');
|
googleFontsToggleElement = document.getElementById('google-fonts-toggle-switch');
|
||||||
googleFontsToggleStyle = document.getElementById('toggle-switch-google-fonts');
|
googleFontsToggleStyle = document.getElementById('toggle-switch-google-fonts');
|
||||||
|
|
||||||
|
if (popup._blockGoogleFonts === false) {
|
||||||
|
document.getElementById('div-google-fonts').hidden = true;
|
||||||
|
}
|
||||||
|
|
||||||
if (popup._domainIsAllowlisted === true) {
|
if (popup._domainIsAllowlisted === true) {
|
||||||
manipulateDOMToggleElement.disabled = true;
|
manipulateDOMToggleElement.disabled = true;
|
||||||
manipulateDOMToggleStyle.setAttribute('class', 'slider-disabled');
|
manipulateDOMToggleStyle.setAttribute('class', 'slider-disabled');
|
||||||
|
@ -130,10 +134,6 @@ popup._renderDomainAllowlistPanel = function () {
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
if (popup._blockGoogleFonts === false) {
|
|
||||||
document.getElementById('div-google-fonts').hidden = true;
|
|
||||||
}
|
|
||||||
|
|
||||||
googleFontsToggleStyle.setAttribute('class', 'slider');
|
googleFontsToggleStyle.setAttribute('class', 'slider');
|
||||||
googleFontsToggleElement.disabled = false;
|
googleFontsToggleElement.disabled = false;
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue