|
|
|
@ -3394,13 +3394,14 @@ angular.module('myApp.services', ['myApp.i18n', 'izhukov.utils'])
@@ -3394,13 +3394,14 @@ angular.module('myApp.services', ['myApp.i18n', 'izhukov.utils'])
|
|
|
|
|
titlePromise; |
|
|
|
|
|
|
|
|
|
$rootScope.$watch('idle.isIDLE', function (newVal) { |
|
|
|
|
// console.log('isIDLE watch', newVal);
|
|
|
|
|
if (!newVal) { |
|
|
|
|
notificationsClear(); |
|
|
|
|
} |
|
|
|
|
if (!Config.Navigator.mobile) { |
|
|
|
|
$interval.cancel(titlePromise); |
|
|
|
|
|
|
|
|
|
if (!newVal) { |
|
|
|
|
document.title = titleBackup; |
|
|
|
|
$('link[rel="icon"]:first').replaceWith(faviconBackupEl); |
|
|
|
|
notificationsClear(); |
|
|
|
|
} else { |
|
|
|
|
titleBackup = document.title; |
|
|
|
|
|
|
|
|
@ -3418,7 +3419,9 @@ angular.module('myApp.services', ['myApp.i18n', 'izhukov.utils'])
@@ -3418,7 +3419,9 @@ angular.module('myApp.services', ['myApp.i18n', 'izhukov.utils'])
|
|
|
|
|
} |
|
|
|
|
}, 1000); |
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|
}); |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
$rootScope.$on('apiUpdate', function (e, update) { |
|
|
|
|
// console.log('on apiUpdate', update);
|
|
|
|
|