mirror of
https://github.com/signalapp/Signal-Desktop.git
synced 2025-12-25 04:36:46 +00:00
Update to work around flashing icon issue (#1384)
Repeatedly clearAttention to prevent flashing icon
This commit is contained in:
committed by
Scott Nonnenberg
parent
f14ac69f2a
commit
07ec2707ac
@@ -19,11 +19,21 @@
|
||||
|
||||
window.drawAttention = function() {
|
||||
if (inboxOpened && !inboxFocused) {
|
||||
if (window.keepClear) {
|
||||
clearInterval(window.keepClear);
|
||||
delete window.keepClear;
|
||||
}
|
||||
extension.windows.drawAttention(inboxWindowId);
|
||||
}
|
||||
};
|
||||
window.clearAttention = function() {
|
||||
extension.windows.clearAttention(inboxWindowId);
|
||||
if (window.keepClear) {
|
||||
clearInterval(window.keepClear);
|
||||
delete window.keepClear;
|
||||
}
|
||||
window.keepClear = setInterval(function() {
|
||||
extension.windows.clearAttention(inboxWindowId)
|
||||
}, 2000);
|
||||
};
|
||||
|
||||
/* Inbox window controller */
|
||||
|
||||
Reference in New Issue
Block a user