summaryrefslogtreecommitdiff
path: root/web
diff options
context:
space:
mode:
authorRobert Zorko <robertz@gurucue.com>2015-09-29 18:16:17 +0200
committerRobert Zorko <robertz@gurucue.com>2015-09-29 18:16:17 +0200
commit6aebfe21975bc74ec713e58339ae40715977e81f (patch)
treeaf84e371508a560615af63b33aa67cfbe67d3381 /web
parent41a0cdf993456d60a1e13d43956d93eed09010bd (diff)
added support to save settings, currently only 'lang' will actually be saved, since it is the only one already in the database
Diffstat (limited to 'web')
-rw-r--r--web/main.js5
1 files changed, 5 insertions, 0 deletions
diff --git a/web/main.js b/web/main.js
index fb393c8..9f06e88 100644
--- a/web/main.js
+++ b/web/main.js
@@ -160,6 +160,11 @@ var guiHandlers = {
'get_problem': function actionTest(session, message) {
logger.debug('Received get_problem from GUI');
sendDataToPython(message).then(session.send, session.end).done();
+ },
+
+ 'settings': function actionSettings(session, message) {
+ logger.debug('Received settings from GUI');
+ sendDataToPython(message).then(session.send, session.end).done();
}
};