parent
448df34e1e
commit
b00dd96a5c
@ -3344,7 +3344,6 @@ var regexAlphaNumericChars = "0-9\.\_" + regexAlphaChars;
|
|||||||
$interval.cancel(titlePromise);
|
$interval.cancel(titlePromise);
|
||||||
|
|
||||||
if (!newVal) {
|
if (!newVal) {
|
||||||
notificationsCount = 0;
|
|
||||||
document.title = titleBackup;
|
document.title = titleBackup;
|
||||||
$('link[rel="icon"]').replaceWith(faviconBackupEl);
|
$('link[rel="icon"]').replaceWith(faviconBackupEl);
|
||||||
notificationsClear();
|
notificationsClear();
|
||||||
@ -3555,11 +3554,15 @@ var regexAlphaNumericChars = "0-9\.\_" + regexAlphaChars;
|
|||||||
function notificationCancel (key) {
|
function notificationCancel (key) {
|
||||||
var notification = notificationsShown[key];
|
var notification = notificationsShown[key];
|
||||||
if (notification) {
|
if (notification) {
|
||||||
|
if (notificationsCount > 0) {
|
||||||
|
notificationsCount--;
|
||||||
|
}
|
||||||
try {
|
try {
|
||||||
if (notification.close) {
|
if (notification.close) {
|
||||||
notification.close();
|
notification.close();
|
||||||
}
|
}
|
||||||
} catch (e) {}
|
} catch (e) {}
|
||||||
|
delete notificationsCount[key];
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -3572,6 +3575,7 @@ var regexAlphaNumericChars = "0-9\.\_" + regexAlphaChars;
|
|||||||
} catch (e) {}
|
} catch (e) {}
|
||||||
});
|
});
|
||||||
notificationsShown = {};
|
notificationsShown = {};
|
||||||
|
notificationsCount = 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
function registerDevice () {
|
function registerDevice () {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user