X-Git-Url: https://gerrit.automotivelinux.org/gerrit/gitweb?p=src%2Fapp-framework-demo.git;a=blobdiff_plain;f=afm-client%2Fapp%2FFrontend%2Fwidgets%2FNotifications%2FTokenRefreshSvc.js;fp=afm-client%2Fapp%2FFrontend%2Fwidgets%2FNotifications%2FTokenRefreshSvc.js;h=4d7aed68713376c0ab651095b3aa63ff07a8e6f9;hp=c4a086eebe62c9f6db41e4b804dc7b9adb5a715d;hb=3482263a53803b6e7662e67b39ed97bdd9fcef13;hpb=e638f2f05da0c8d49c27a4323e261b6f36447d2b 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"); }); };