From 32519f8eaeaf35d72eccdef8dbf4a9bb28e52b00 Mon Sep 17 00:00:00 2001 From: liuzheng712 Date: Thu, 3 Mar 2016 16:50:49 +0800 Subject: [PATCH] fix: --- static/js/webterminal.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/static/js/webterminal.js b/static/js/webterminal.js index ca16cd8e8..fd25d1257 100644 --- a/static/js/webterminal.js +++ b/static/js/webterminal.js @@ -13,7 +13,7 @@ WSSHClient.prototype._generateEndpoint = function (options) { var protocol = 'ws://'; } - var endpoint = protocol + document.URL.match(RegExp('//(.*?)/'))[1] + '/ws/terminal'; + var endpoint = protocol + document.URL.match(RegExp('//(.*?)/'))[1] + '/ws/terminal'+document.URL.match(/(\?.*)/); return endpoint; }; WSSHClient.prototype.connect = function (options) {