summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--js/codeq/core.js2
-rw-r--r--js/codeq/login.js2
2 files changed, 4 insertions, 0 deletions
diff --git a/js/codeq/core.js b/js/codeq/core.js
index fd58781..1763a2f 100644
--- a/js/codeq/core.js
+++ b/js/codeq/core.js
@@ -265,6 +265,8 @@ along with this program. If not, see <http://www.gnu.org/licenses/>. */
'gui_layout': 'line-layout'
},
+ 'experiments': [], // experiments the user is participating in
+
'availableLangs': [], // filled at boot from 'supportedLangs'
'supportedLangs': {
'en': 'English',
diff --git a/js/codeq/login.js b/js/codeq/login.js
index dff70e5..5701f34 100644
--- a/js/codeq/login.js
+++ b/js/codeq/login.js
@@ -62,6 +62,8 @@ along with this program. If not, see <http://www.gnu.org/licenses/>. */
$("#settings-layout").val(sett['gui_layout']);
}
+ codeq.experiments = data.experiments || [];
+
codeq.globalStateMachine.transition('language');
};