fix 'is extension enabled' query
This commit is contained in:
parent
843a405323
commit
d3c3c99069
@ -155,8 +155,6 @@ class Settings {
|
|||||||
const sorted = this.sortConfPatches(extconfPatches);
|
const sorted = this.sortConfPatches(extconfPatches);
|
||||||
return sorted.findIndex(x => this.compareExtensionVersions(x.forVersion, version) > 0);
|
return sorted.findIndex(x => this.compareExtensionVersions(x.forVersion, version) > 0);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
applySettingsPatches(oldVersion, patches) {
|
applySettingsPatches(oldVersion, patches) {
|
||||||
let index = this.findFirstNecessaryPatch(oldVersion, patches);
|
let index = this.findFirstNecessaryPatch(oldVersion, patches);
|
||||||
if (index === -1) {
|
if (index === -1) {
|
||||||
@ -486,7 +484,7 @@ class Settings {
|
|||||||
}
|
}
|
||||||
|
|
||||||
extensionEnabled(){
|
extensionEnabled(){
|
||||||
return this.active.sites['@global'] !== ExtensionMode.Disabled
|
return this.active.sites['@global'].mode !== ExtensionMode.Disabled
|
||||||
}
|
}
|
||||||
|
|
||||||
extensionEnabledForSite(site) {
|
extensionEnabledForSite(site) {
|
||||||
|
Loading…
Reference in New Issue
Block a user