diff options
author | Alexandr Ilenko <AIlenko@IBS.RU> | 2022-08-30 10:50:03 +0300 |
---|---|---|
committer | Alexandr Ilenko <AIlenko@IBS.RU> | 2022-08-30 10:50:03 +0300 |
commit | 53053c00715b33ba83b055cb7c0f6bec629d7689 (patch) | |
tree | 893ae3b39eec0679d41a0cb2136dafa8f0bcfab1 /src/views/Operations/SerialOverLan/SerialOverLanConsole.vue | |
parent | 0444ab4658743504ddf12ddf911158aebf9037ae (diff) | |
parent | 788f3f3566bea46a164ed8ed68b39f69344fc65e (diff) | |
download | webui-vue-53053c00715b33ba83b055cb7c0f6bec629d7689.tar.xz |
Merge branch 'fix-SILABMC-172' into sila
Diffstat (limited to 'src/views/Operations/SerialOverLan/SerialOverLanConsole.vue')
-rw-r--r-- | src/views/Operations/SerialOverLan/SerialOverLanConsole.vue | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/views/Operations/SerialOverLan/SerialOverLanConsole.vue b/src/views/Operations/SerialOverLan/SerialOverLanConsole.vue index 694083fd..6b84ab85 100644 --- a/src/views/Operations/SerialOverLan/SerialOverLanConsole.vue +++ b/src/views/Operations/SerialOverLan/SerialOverLanConsole.vue @@ -91,9 +91,9 @@ export default { openTerminal() { const token = this.$store.getters['authentication/token']; - this.ws = new WebSocket(`wss://${window.location.host}/console0`, [ - token, - ]); + const url = new URL('/console0', window.location.href); + url.protocol = url.protocol.replace('http', 'ws'); + this.ws = new WebSocket(url, [token]); // Refer https://github.com/xtermjs/xterm.js/ for xterm implementation and addons. |