diff options
author | Vitalii Lysak <v.lysak@dunice.net> | 2022-08-30 10:54:30 +0300 |
---|---|---|
committer | Vitalii Lysak <v.lysak@dunice.net> | 2022-08-30 10:54:30 +0300 |
commit | a7830e9bfb3e0d3988765301f84945328dc51434 (patch) | |
tree | a6ef87a6f4b205e80384042d2cec80945a7ec6d4 /src/views/_sila/Operations/SerialOverLan/SerialOverLanConsole.vue | |
parent | 33481889c903582e45d9beabc66eac0fe021863b (diff) | |
parent | 53053c00715b33ba83b055cb7c0f6bec629d7689 (diff) | |
download | webui-vue-a7830e9bfb3e0d3988765301f84945328dc51434.tar.xz |
Merge branch 'sila' of git.sila.ru:pub/openbmc/webui-vue into sila
Diffstat (limited to 'src/views/_sila/Operations/SerialOverLan/SerialOverLanConsole.vue')
-rw-r--r-- | src/views/_sila/Operations/SerialOverLan/SerialOverLanConsole.vue | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/views/_sila/Operations/SerialOverLan/SerialOverLanConsole.vue b/src/views/_sila/Operations/SerialOverLan/SerialOverLanConsole.vue index b1087805..3b51fc56 100644 --- a/src/views/_sila/Operations/SerialOverLan/SerialOverLanConsole.vue +++ b/src/views/_sila/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. |