Draw attention to the window on new messages
// FREEBIE
This commit is contained in:
parent
ea930d53ae
commit
0c9cca08ba
3 changed files with 19 additions and 11 deletions
|
@ -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) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue