summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorFulup Ar Foll <fulup@iot.bzh>2016-02-16 18:34:21 +0100
committerFulup Ar Foll <fulup@iot.bzh>2016-02-16 18:34:21 +0100
commit35698424ab8973d91208df92471d18b1c901220e (patch)
tree7e07984eca1a3c6df34a59e7ce52d847f2d75ae7
parente6d12f74be543056a439259b61ba40a9d0adcf5c (diff)
Fixed BeforeUnload Binder Call in ProdMode
-rw-r--r--afb-client/app/Frontend/widgets/Notifications/TokenRefreshSvc.js7
1 files changed, 3 insertions, 4 deletions
diff --git a/afb-client/app/Frontend/widgets/Notifications/TokenRefreshSvc.js b/afb-client/app/Frontend/widgets/Notifications/TokenRefreshSvc.js
index c4a086e..59fc763 100644
--- a/afb-client/app/Frontend/widgets/Notifications/TokenRefreshSvc.js
+++ b/afb-client/app/Frontend/widgets/Notifications/TokenRefreshSvc.js
@@ -34,14 +34,14 @@
// scope module is load statically before any route is cativated
angular.module('TokenRefresh', ['AppConfig', 'ModalNotification'])
- .directive ('tokenRefresh', function($window, $timeout, $location, Notification, AppConfig, AppCall) {
+ .directive ('tokenRefresh', function($log, $window, $timeout, $location, Notification, AppConfig, AppCall) {
function mymethods(scope, elem, attrs) {
scope.logged=undefined; // neither thu neither false
$window.onbeforeunload = function () {
- AppCall.get ("token", "reset", {/*query*/}, function () {
- console.log("OPA Exit Requested");
+ AppCall.get ("token", "reset", {/*query*/}, function () {
+ $log.log("OPA exit");
});
};
@@ -133,4 +133,3 @@ angular.module('TokenRefresh', ['AppConfig', 'ModalNotification'])
})();
console.log ("Token Refresh Loaded");
-