diff --git a/src/ext/lib/Settings.js b/src/ext/lib/Settings.js index f95a8fd..171a31c 100644 --- a/src/ext/lib/Settings.js +++ b/src/ext/lib/Settings.js @@ -279,17 +279,17 @@ class Settings { try{ // if site is not defined, we use default mode: if (! this.active.sites[site]) { - return this.active.sites['@global'] === ExtensionMode.Enabled; + return this.active.sites['@global'].mode === ExtensionMode.Enabled; } - if(this.active.sites['@global'] === ExtensionMode.Enabled) { + if(this.active.sites['@global'].mode === ExtensionMode.Enabled) { return this.active.sites[site].mode !== ExtensionMode.Disabled; - } else if (this.active.sites['@global'] === ExtensionMode.Whitelist) { + } else if (this.active.sites['@global'].mode === ExtensionMode.Whitelist) { return this.active.sites[site].mode === ExtensionMode.Enabled; } else { return false; } - }catch(e){ + } catch(e){ if(Debug.debug){ console.log("[Settings.js::canStartExtension] Something went wrong — are settings defined/has init() been called?\nSettings object:", this) } diff --git a/src/ext/lib/ar-detect/ArDetector.js b/src/ext/lib/ar-detect/ArDetector.js index e9358cf..be59502 100644 --- a/src/ext/lib/ar-detect/ArDetector.js +++ b/src/ext/lib/ar-detect/ArDetector.js @@ -611,7 +611,9 @@ class ArDetector { } return; } else { - console.log("%c[ArDetect::frameCheck] Black frame analysis suggests this frame is not completely black. Doing further analysis,", "color: #3fa", bfanalysis); + // if (Debug.debug && Debug.arDetect) { + // console.log("%c[ArDetect::frameCheck] Black frame analysis suggests this frame is not completely black. Doing further analysis,", "color: #3fa", bfanalysis); + // } } diff --git a/src/options/AutodetectionSettings.vue b/src/options/AutodetectionSettings.vue index 55121bf..86f7c02 100644 --- a/src/options/AutodetectionSettings.vue +++ b/src/options/AutodetectionSettings.vue @@ -2,27 +2,29 @@