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

no labs for guests

This commit is contained in:
Matthew Hodgson
2016-09-17 14:29:40 +01:00
parent 0046ae50b5
commit cf1b1442eb
2 changed files with 13 additions and 0 deletions

View File

@@ -160,6 +160,9 @@ module.exports = {
},
isFeatureEnabled: function(feature: string): boolean {
// Disable labs for guests.
if (MatrixClientPeg.get().isGuest()) return false;
if (localStorage.getItem(`mx_labs_feature_${feature}`) === null) {
for (var i = 0; i < this.LABS_FEATURES.length; i++) {
var f = this.LABS_FEATURES[i];