diff options
author | Fulup Ar Foll <fulup@iot.bzh> | 2016-05-28 12:28:19 +0200 |
---|---|---|
committer | Fulup Ar Foll <fulup@iot.bzh> | 2016-05-28 12:28:19 +0200 |
commit | 95a5e12dca0e0e0eb93b3dad69e529d737840d38 (patch) | |
tree | 618f800406d41e6f23e5722671ed51ac0144bd8e /afb-client/app/Frontend/widgets/Notifications/TokenRefreshSvc.js | |
parent | 6d06a2a9a02906ce4c848540d74c3c5798688664 (diff) |
Clean up and documentation
Diffstat (limited to 'afb-client/app/Frontend/widgets/Notifications/TokenRefreshSvc.js')
-rw-r--r-- | afb-client/app/Frontend/widgets/Notifications/TokenRefreshSvc.js | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/afb-client/app/Frontend/widgets/Notifications/TokenRefreshSvc.js b/afb-client/app/Frontend/widgets/Notifications/TokenRefreshSvc.js index 3e5e8d6..4dee196 100644 --- a/afb-client/app/Frontend/widgets/Notifications/TokenRefreshSvc.js +++ b/afb-client/app/Frontend/widgets/Notifications/TokenRefreshSvc.js @@ -68,7 +68,7 @@ angular.module('TokenRefresh', ['AppConfig', 'ModalNotification']) scope.onsuccess = function(jresp, errcode) { if (errcode !== 200 || jresp.request.status !== "success") { - Notification.warning ({message: jresp.request.info, delay: 5000}); + Notification.warning ({message: "auto-connect :" + jresp.request.info, delay: 10000}); scope.offline(); return false; } @@ -111,7 +111,7 @@ angular.module('TokenRefresh', ['AppConfig', 'ModalNotification']) // Initial connection scope.loggin = function() { - AppCall.get (scope.plugin, "login", {token: AppConfig.session.initial}, function(jresp, errcode) { + AppCall.get (scope.plugin, "connect", {token: AppConfig.session.initial}, function(jresp, errcode) { if (!scope.onsuccess (jresp, errcode)) return; |