summaryrefslogtreecommitdiffstats
path: root/afm-client/app/Frontend/widgets/Notifications/TokenRefreshSvc.js
diff options
context:
space:
mode:
authorFulup Ar Foll <fulup@iot.bzh>2016-05-29 19:44:32 +0200
committerFulup Ar Foll <fulup@iot.bzh>2016-05-29 19:44:32 +0200
commitbe065088603400d0bde4fe440d5e459b983ca38e (patch)
tree32faea7479886d2d2c8b29c50260908ab8884d29 /afm-client/app/Frontend/widgets/Notifications/TokenRefreshSvc.js
parent96190f9cd583d9182c692c88d3342109bad81157 (diff)
Update client window exit
Diffstat (limited to 'afm-client/app/Frontend/widgets/Notifications/TokenRefreshSvc.js')
-rw-r--r--afm-client/app/Frontend/widgets/Notifications/TokenRefreshSvc.js4
1 files changed, 2 insertions, 2 deletions
diff --git a/afm-client/app/Frontend/widgets/Notifications/TokenRefreshSvc.js b/afm-client/app/Frontend/widgets/Notifications/TokenRefreshSvc.js
index 3ddd270..2c7c3da 100644
--- a/afm-client/app/Frontend/widgets/Notifications/TokenRefreshSvc.js
+++ b/afm-client/app/Frontend/widgets/Notifications/TokenRefreshSvc.js
@@ -25,7 +25,7 @@
'use strict';
var template =
- '<div class="afb-monitor" ng-click="getping()">' +
+ '<div class="afb-monitor" ng-click="getping()">' +
'<span class="afb-refresh-token" >afb://{{hostname}}:{{httpdport}}</span>' +
'<i class="{{icon}}"></i>' +
'</div>';
@@ -40,7 +40,7 @@ angular.module('TokenRefresh', ['AppConfig', 'ModalNotification'])
scope.logged=undefined; // neither thu neither false
$window.onbeforeunload = function () {
- AppCall.get ("token", "reset", {/*query*/}, function () {
+ AppCall.get (scope.plugin, "logout", {/*query*/}, function () {
$log.log("OPA exit");
});
};