mirror of
https://github.com/vector-im/element-web.git
synced 2025-08-22 23:11:12 +02:00
Merge pull request #1474 from matrix-org/dbkr/fix_enablelabs_again
Fix the enableLabs flag, again
This commit is contained in:
commit
d7c3fc9adb
@ -202,7 +202,10 @@ export default {
|
||||
isFeatureEnabled: function(featureId: string): boolean {
|
||||
const featuresConfig = SdkConfig.get()['features'];
|
||||
|
||||
let sdkConfigValue = 'disable';
|
||||
// The old flag: honourned for backwards compat
|
||||
const enableLabs = SdkConfig.get()['enableLabs'];
|
||||
|
||||
let sdkConfigValue = enableLabs ? 'labs' : 'disable';
|
||||
if (featuresConfig && featuresConfig[featureId] !== undefined) {
|
||||
sdkConfigValue = featuresConfig[featureId];
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user