@@ -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
|
||||
|
Reference in New Issue
Block a user