From 3482263a53803b6e7662e67b39ed97bdd9fcef13 Mon Sep 17 00:00:00 2001 From: Fulup Ar Foll Date: Tue, 16 Feb 2016 18:33:01 +0100 Subject: Fixed BeforeUnload Binder Call in ProdMode --- afm-client/app/Frontend/widgets/Notifications/TokenRefreshSvc.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'afm-client/app/Frontend/widgets/Notifications/TokenRefreshSvc.js') diff --git a/afm-client/app/Frontend/widgets/Notifications/TokenRefreshSvc.js b/afm-client/app/Frontend/widgets/Notifications/TokenRefreshSvc.js index c4a086e..4d7aed6 100644 --- a/afm-client/app/Frontend/widgets/Notifications/TokenRefreshSvc.js +++ b/afm-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"); }); }; -- cgit 1.2.3-korg