change REST path on remote handle

This commit is contained in:
Xuan Sang LE
2018-09-12 18:28:32 +02:00
parent 4378723fff
commit b6100b2d07
3 changed files with 22 additions and 19 deletions

View File

@ -76,7 +76,8 @@ class wTerm extends this.OS.GUI.BaseApplication
@term.clear()
@term.focus()
proto = if window.location.protocol is "https:" then "wss://" else "ws://"
@socket = new WebSocket proto + @_api.HOST + "/wterm"
#@socket = new WebSocket proto + @_api.HOST + "/wterm"
@socket = new WebSocket @_api.TERMURI
@socket.onopen = () ->
#el.style.display = "none"
me.resizeContent (($ me.mterm).width()) , (($ me.mterm).height())