Draw attention to the window on new messages

// FREEBIE
This commit is contained in:
lilia 2017-04-24 17:14:38 -07:00 committed by Scott Nonnenberg
parent ea930d53ae
commit 0c9cca08ba
No known key found for this signature in database
GPG key ID: A4931C09644C654B
3 changed files with 19 additions and 11 deletions

View file

@ -13,16 +13,6 @@
return true;
};
window.drawAttention = function() {
if (isOpen() && !isFocused()) {
if (window.keepClear) {
clearInterval(window.keepClear);
delete window.keepClear;
}
console.log('draw attention');
extension.windows.drawAttention(inboxWindowId);
}
};
window.clearAttention = function() {
console.log('clear attention');
if (window.keepClear) {