Code Review
/
src
/
app-framework-demo.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
review
|
tree
raw
|
inline
| side by side
Fixed BeforeUnload Binder Call in ProdMode
[src/app-framework-demo.git]
/
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
(file)
--- 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'])
// 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 () {
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");
});
};
});
};