From 1efcc83b44f7b088a809662404c8196a53aa7422 Mon Sep 17 00:00:00 2001 From: Tamius Han Date: Sun, 16 Sep 2018 14:22:08 +0200 Subject: [PATCH] Popup: fixed menus not getting disabled --- res/popup/js/popup.js | 14 ++++++++------ 1 file changed, 8 insertions(+), 6 deletions(-) diff --git a/res/popup/js/popup.js b/res/popup/js/popup.js index c82a184..65dee49 100644 --- a/res/popup/js/popup.js +++ b/res/popup/js/popup.js @@ -145,6 +145,8 @@ function configurePopupTabs(site) { MenuTab.videoSettings.classList.remove('disabled'); } + console.log("ext enabled?", extensionEnabled, "for site", site, "?", extensionEnabledForSite); + if (! extensionEnabledForSite) { MenuTab.videoSettings.classList.add('disabled'); if (! extensionEnabled) { @@ -634,12 +636,12 @@ async function popup_init() { validateCustomAr(); }); - autoarFrequencyInputField.addEventListener("blur", (event) => { - validateAutoArTimeout(); - }); - autoarFrequencyInputField.addEventListener("mouseleave", (event) => { - validateAutoArTimeout(); - }); + // autoarFrequencyInputField.addEventListener("blur", (event) => { + // validateAutoArTimeout(); + // }); + // autoarFrequencyInputField.addEventListener("mouseleave", (event) => { + // validateAutoArTimeout(); + // }); hideWarning("script-not-running-warning"); getSite();