mirror of
https://github.com/lxsang/antos-frontend.git
synced 2024-12-27 01:38: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 = @
|
me = @
|
||||||
@term.clear()
|
@term.clear()
|
||||||
@term.focus()
|
@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 = () ->
|
@socket.onopen = () ->
|
||||||
#el.style.display = "none"
|
#el.style.display = "none"
|
||||||
me.resizeContent (($ me.mterm).width()) , (($ me.mterm).height())
|
me.resizeContent (($ me.mterm).width()) , (($ me.mterm).height())
|
||||||
|
Loading…
Reference in New Issue
Block a user