parent
dabe51fd68
commit
a23e862e62
2 changed files with 8 additions and 0 deletions
|
@ -137,6 +137,13 @@
|
||||||
w.clearAttention();
|
w.clearAttention();
|
||||||
w.drawAttention();
|
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() {
|
appWindow.contentWindow.addEventListener('focus', function() {
|
||||||
inboxFocused = true;
|
inboxFocused = true;
|
||||||
|
extension.windows.clearAttention(inboxWindowId);
|
||||||
});
|
});
|
||||||
|
|
||||||
// close the inbox if background.html is refreshed
|
// close the inbox if background.html is refreshed
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue