From d3c3c99069d28e073ef9bae25e6544584a61705a Mon Sep 17 00:00:00 2001 From: Tamius Han Date: Sat, 10 Apr 2021 04:09:00 +0200 Subject: [PATCH] fix 'is extension enabled' query --- src/ext/lib/Settings.ts | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/src/ext/lib/Settings.ts b/src/ext/lib/Settings.ts index 004eddc..e306cf0 100644 --- a/src/ext/lib/Settings.ts +++ b/src/ext/lib/Settings.ts @@ -155,8 +155,6 @@ class Settings { const sorted = this.sortConfPatches(extconfPatches); return sorted.findIndex(x => this.compareExtensionVersions(x.forVersion, version) > 0); } - - applySettingsPatches(oldVersion, patches) { let index = this.findFirstNecessaryPatch(oldVersion, patches); if (index === -1) { @@ -486,7 +484,7 @@ class Settings { } extensionEnabled(){ - return this.active.sites['@global'] !== ExtensionMode.Disabled + return this.active.sites['@global'].mode !== ExtensionMode.Disabled } extensionEnabledForSite(site) {