From 94a3797f5396f3161de7b8d9e817b602bea78422 Mon Sep 17 00:00:00 2001 From: Martin Edenhofer Date: Sun, 10 May 2015 22:30:48 +0200 Subject: [PATCH] Moved web socket connection after login check to access config settings for web socket server port. --- .../javascripts/app/lib/app_post/interface_handle.js.coffee | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/app/assets/javascripts/app/lib/app_post/interface_handle.js.coffee b/app/assets/javascripts/app/lib/app_post/interface_handle.js.coffee index 1d896b6b0..23df47a44 100644 --- a/app/assets/javascripts/app/lib/app_post/interface_handle.js.coffee +++ b/app/assets/javascripts/app/lib/app_post/interface_handle.js.coffee @@ -15,12 +15,12 @@ class App.Run extends App.Controller # init collections App.Collection.init() - # create web socket connection - App.WebSocket.connect() - # check if session already exists/try to get session data from server App.Auth.loginCheck() + # create web socket connection + App.WebSocket.connect() + # start navbars @setupWidget( 'Navigations', 'nav', @el )