fix wterm

This commit is contained in:
Xuan Sang LE 2018-02-20 18:59:58 +01:00
parent 05ef1a6612
commit 755a922c48

View File

@ -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())