Fix bug: Not correctly judge HTTPS

Signed-off-by: Jianhui Zhao <jianhuizhao329@gmail.com>
This commit is contained in:
Jianhui Zhao
2018-03-09 17:54:27 +08:00
parent 56111103a1
commit 954b0ff2c1
2 changed files with 2 additions and 2 deletions
+1 -1
View File
@@ -262,7 +262,7 @@ export default {
this.terminal.term = term;
var protocol = 'ws://';
if (location.protocol == 'https://')
if (location.protocol == 'https:')
protocol = 'wss://';
var ws = new Socket(protocol + location.host + '/ws?devid=' + this.devId);