X-Git-Url: https://gerrit.automotivelinux.org/gerrit/gitweb?a=blobdiff_plain;f=afb-client%2Fapp%2FFrontend%2Fwidgets%2FNotifications%2FTokenRefreshSvc.js;h=59fc7638e2fed27785bdddaf1e8507f90d055a0b;hb=35698424ab8973d91208df92471d18b1c901220e;hp=c4a086eebe62c9f6db41e4b804dc7b9adb5a715d;hpb=fb1353dbc12ae889c17a6aa1572b917f57de0f9d;p=src%2Fapp-framework-demo.git 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"); -