mirror of
https://github.com/netfun2000/rttys_zhaojh329.git
synced 2026-02-27 09:53:24 +08:00
Fix bug: Not correctly judge HTTPS
Signed-off-by: Jianhui Zhao <jianhuizhao329@gmail.com>
This commit is contained in:
+1
-1
@@ -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);
|
||||
|
||||
+1
-1
File diff suppressed because one or more lines are too long
Reference in New Issue
Block a user