Close debug window when main window unloads

This commit is contained in:
Nick O'Leary 2016-10-27 09:01:47 +01:00
parent f460283fa1
commit 9555e296a2
1 changed files with 10 additions and 0 deletions

View File

@ -194,6 +194,16 @@
*/
});
$(window).unload(function() {
if (subWindow) {
try {
subWindow.close()
} catch(err) {
console.log(err);
}
}
});
this.handleWindowMessage = function(evt) {
var msg = evt.data;
if (msg.event === "mouseEnter") {