Update client window exit
authorFulup Ar Foll <fulup@iot.bzh>
Sun, 29 May 2016 17:45:13 +0000 (19:45 +0200)
committerFulup Ar Foll <fulup@iot.bzh>
Sun, 29 May 2016 17:45:13 +0000 (19:45 +0200)
afb-client/app/Frontend/widgets/Notifications/TokenRefreshSvc.js

index 4dee196..2c7c3da 100644 (file)
@@ -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");            
             });
         };