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:
parent
f460283fa1
commit
9555e296a2
@ -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") {
|
||||
|
Loading…
Reference in New Issue
Block a user