Popup: fixed menus not getting disabled

This commit is contained in:
Tamius Han 2018-09-16 14:22:08 +02:00
parent 76b5f6eca1
commit 1efcc83b44

View File

@ -145,6 +145,8 @@ function configurePopupTabs(site) {
MenuTab.videoSettings.classList.remove('disabled'); MenuTab.videoSettings.classList.remove('disabled');
} }
console.log("ext enabled?", extensionEnabled, "for site", site, "?", extensionEnabledForSite);
if (! extensionEnabledForSite) { if (! extensionEnabledForSite) {
MenuTab.videoSettings.classList.add('disabled'); MenuTab.videoSettings.classList.add('disabled');
if (! extensionEnabled) { if (! extensionEnabled) {
@ -634,12 +636,12 @@ async function popup_init() {
validateCustomAr(); validateCustomAr();
}); });
autoarFrequencyInputField.addEventListener("blur", (event) => { // autoarFrequencyInputField.addEventListener("blur", (event) => {
validateAutoArTimeout(); // validateAutoArTimeout();
}); // });
autoarFrequencyInputField.addEventListener("mouseleave", (event) => { // autoarFrequencyInputField.addEventListener("mouseleave", (event) => {
validateAutoArTimeout(); // validateAutoArTimeout();
}); // });
hideWarning("script-not-running-warning"); hideWarning("script-not-running-warning");
getSite(); getSite();