diff options
Diffstat (limited to 'webapp/cao-common.js')
-rw-r--r-- | webapp/cao-common.js | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/webapp/cao-common.js b/webapp/cao-common.js index 6d92de7..0ec516d 100644 --- a/webapp/cao-common.js +++ b/webapp/cao-common.js @@ -28,6 +28,8 @@ var CAO = function() { var self = this; var ws; + var lang; + var nbr_played_cards = 0; var played_cards = []; @@ -39,6 +41,10 @@ var CAO = function() { var map_handle_response_ok = {}; var map_handle_notif = {}; + this.set_lang = function(language) { + lang = language; + }; + this.is_judge = function() { return judge; }; @@ -287,6 +293,7 @@ var CAO = function() { var request = { 'op': 'join_game', 'game_name': game_name, + 'lang': lang, }; request_queue.push('join_game'); ws.send(JSON.stringify(request)); |