From 95b2675f03b5ceb0b2b414f4fb6fdf4e7f23d497 Mon Sep 17 00:00:00 2001 From: Nick O'Leary Date: Tue, 22 Nov 2016 13:14:52 +0000 Subject: [PATCH] Support query and search paths in url when opening debug sub window --- nodes/core/core/58-debug.html | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/nodes/core/core/58-debug.html b/nodes/core/core/58-debug.html index 45d00f909..c784bbdf2 100644 --- a/nodes/core/core/58-debug.html +++ b/nodes/core/core/58-debug.html @@ -184,9 +184,10 @@ RED.comms.subscribe("debug",this.handleDebugMessage); RED.events.on("workspace:change", this.refreshMessageList); + $("#debug-tab-open").click(function(e) { e.preventDefault(); - subWindow = window.open(document.location.toString().replace(/#.*$/,"")+"debug/view/view.html","nodeREDDebugView","menubar=no,location=no,toolbar=no,chrome,height=500,width=600"); + subWindow = window.open(document.location.toString().replace(/[?#].*$/,"")+"debug/view/view.html"+document.location.search,"nodeREDDebugView","menubar=no,location=no,toolbar=no,chrome,height=500,width=600"); subWindow.onload = function() { subWindow.postMessage({event:"workspaceChange",activeWorkspace:RED.workspaces.active()},"*"); }