parent
46dfee6ca5
commit
41ff65fb01
@ -629,7 +629,7 @@ angular.module('izhukov.mtproto.wrapper', ['izhukov.utils', 'izhukov.mtproto'])
|
|||||||
var errorShowTime = 0;
|
var errorShowTime = 0;
|
||||||
|
|
||||||
function start() {
|
function start() {
|
||||||
if (!started) {
|
if (!started && !Config.Navigator.mobile) {
|
||||||
started = true;
|
started = true;
|
||||||
|
|
||||||
IdleManager.start();
|
IdleManager.start();
|
||||||
|
@ -3394,13 +3394,14 @@ angular.module('myApp.services', ['myApp.i18n', 'izhukov.utils'])
|
|||||||
titlePromise;
|
titlePromise;
|
||||||
|
|
||||||
$rootScope.$watch('idle.isIDLE', function (newVal) {
|
$rootScope.$watch('idle.isIDLE', function (newVal) {
|
||||||
// console.log('isIDLE watch', newVal);
|
if (!newVal) {
|
||||||
|
notificationsClear();
|
||||||
|
}
|
||||||
|
if (!Config.Navigator.mobile) {
|
||||||
$interval.cancel(titlePromise);
|
$interval.cancel(titlePromise);
|
||||||
|
|
||||||
if (!newVal) {
|
if (!newVal) {
|
||||||
document.title = titleBackup;
|
document.title = titleBackup;
|
||||||
$('link[rel="icon"]:first').replaceWith(faviconBackupEl);
|
$('link[rel="icon"]:first').replaceWith(faviconBackupEl);
|
||||||
notificationsClear();
|
|
||||||
} else {
|
} else {
|
||||||
titleBackup = document.title;
|
titleBackup = document.title;
|
||||||
|
|
||||||
@ -3418,7 +3419,9 @@ angular.module('myApp.services', ['myApp.i18n', 'izhukov.utils'])
|
|||||||
}
|
}
|
||||||
}, 1000);
|
}, 1000);
|
||||||
}
|
}
|
||||||
|
}
|
||||||
});
|
});
|
||||||
|
}
|
||||||
|
|
||||||
$rootScope.$on('apiUpdate', function (e, update) {
|
$rootScope.$on('apiUpdate', function (e, update) {
|
||||||
// console.log('on apiUpdate', update);
|
// console.log('on apiUpdate', update);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user