fix 'is extension enabled' query

This commit is contained in:
Tamius Han 2021-04-10 04:09:00 +02:00
parent 843a405323
commit d3c3c99069

View File

@ -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) {