1
0
mirror of https://github.com/node-red/node-red.git synced 2023-10-10 13:36:53 +02:00

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

View File

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