Clear timestamp timeouts if the window closes
// FREEBIE
This commit is contained in:
parent
2ce890b845
commit
c34f8e330d
2 changed files with 11 additions and 1 deletions
|
@ -122,6 +122,10 @@
|
|||
window.addEventListener('beforeunload', callback);
|
||||
}
|
||||
},
|
||||
onClosed: function(callback) {
|
||||
// assumes only one front end window
|
||||
return chrome.app.window.getAll()[0].onClosed.addListener(callback);
|
||||
},
|
||||
|
||||
drawAttention: function(window_id) {
|
||||
if (chrome.app.window) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue