1
0
mirror of https://github.com/matrix-org/matrix-react-sdk.git synced 2025-11-05 23:10:41 +03:00

turn on E2E and Scalar by default

This commit is contained in:
Matthew Hodgson
2016-09-16 18:36:03 +01:00
parent 08543a66c4
commit c322a191af
2 changed files with 11 additions and 5 deletions

View File

@@ -142,7 +142,10 @@ module.exports = {
return MatrixClientPeg.get().setAccountData("im.vector.web.settings", settings);
},
isFeatureEnabled: function(feature: string): boolean {
isFeatureEnabled: function(feature: string): ?boolean {
if (localStorage.getItem(`mx_labs_feature_${feature}`) === null) {
return null;
}
return localStorage.getItem(`mx_labs_feature_${feature}`) === 'true';
},