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

Labs improvements

This commit is contained in:
Aviral Dasgupta
2016-06-13 23:25:31 +05:30
parent 727e6daaae
commit 5831a68e11
2 changed files with 15 additions and 13 deletions

View File

@@ -114,12 +114,10 @@ module.exports = {
},
isFeatureEnabled: function(feature: string): boolean {
feature = feature.match(/\w+/g).join('_').toLowerCase();
return localStorage.getItem(`mx_labs_feature_${feature}`) === 'true';
},
setFeatureEnabled: function(feature: string, enabled: boolean) {
feature = feature.match(/\w+/g).join('_').toLowerCase();
localStorage.setItem(`mx_labs_feature_${feature}`, enabled);
}
};