From 6d71f49a7ab9edea7ba2d3c28a4d96d044f851f1 Mon Sep 17 00:00:00 2001 From: Jordan Rodgers Date: Tue, 13 Feb 2018 01:31:06 -0500 Subject: [PATCH] open console in new tab --- proxstar/static/js/script.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/proxstar/static/js/script.js b/proxstar/static/js/script.js index aca8c1a..1f2a531 100644 --- a/proxstar/static/js/script.js +++ b/proxstar/static/js/script.js @@ -812,7 +812,7 @@ $("#console-vm").click(function(){ }).then((response) => { return response.text() }).then((token) => { - window.location = `/static/noVNC/vnc.html?autoconnect=true&?encrypt=true&?host=proxstar-vnc.csh.rit.edu&?port=443&?path=path?token=${token}`; + window.open(`/static/noVNC/vnc.html?autoconnect=true&encrypt=true&host=proxstar-vnc.csh.rit.edu&port=443&path=path?token=${token}`, '_blank'); }).catch(err => { if (err) { swal("Uh oh...", `Unable to start console for ${vmname}. Please try again later.`, "error");