fix(webterminal): test

pull/112/head
liuzheng712 2016-03-03 16:41:41 +08:00
parent 0e7a8c1a62
commit dbb4904513
1 changed files with 1 additions and 1 deletions

View File

@ -13,7 +13,7 @@ WSSHClient.prototype._generateEndpoint = function (options) {
var protocol = 'ws://';
}
var endpoint = protocol + window.location.host + ':8080' + '/terminal';
var endpoint = protocol + document.URL.match(RegExp('//(.*?)/'))[1] + '/ws/terminal';
return endpoint;
};
WSSHClient.prototype.connect = function (options) {