mirror of
https://github.com/lxsang/antos-frontend.git
synced 2024-12-26 09:28:21 +01:00
fix wterm
This commit is contained in:
parent
05ef1a6612
commit
755a922c48
@ -57,7 +57,8 @@ class wTerm extends this.OS.GUI.BaseApplication
|
||||
me = @
|
||||
@term.clear()
|
||||
@term.focus()
|
||||
@socket = new WebSocket "wss://" + @_api.HOST + "/wterm"
|
||||
proto = if window.location.protocol is "https:" then "wss://" else "ws://"
|
||||
@socket = new WebSocket proto + @_api.HOST + "/wterm"
|
||||
@socket.onopen = () ->
|
||||
#el.style.display = "none"
|
||||
me.resizeContent (($ me.mterm).width()) , (($ me.mterm).height())
|
||||
|
Loading…
Reference in New Issue
Block a user