parent
dabe51fd68
commit
a23e862e62
2 changed files with 8 additions and 0 deletions
|
@ -137,6 +137,13 @@
|
|||
w.clearAttention();
|
||||
w.drawAttention();
|
||||
}
|
||||
},
|
||||
|
||||
clearAttention: function(window_id) {
|
||||
if (chrome.app.window) {
|
||||
var w = chrome.app.window.get(window_id);
|
||||
w.clearAttention();
|
||||
}
|
||||
}
|
||||
|
||||
};
|
||||
|
|
|
@ -57,6 +57,7 @@
|
|||
});
|
||||
appWindow.contentWindow.addEventListener('focus', function() {
|
||||
inboxFocused = true;
|
||||
extension.windows.clearAttention(inboxWindowId);
|
||||
});
|
||||
|
||||
// close the inbox if background.html is refreshed
|
||||
|
|
Loading…
Reference in a new issue