switch the os to https

This commit is contained in:
Xuan Sang LE 2018-02-10 16:30:51 +01:00
parent 107e85e612
commit 3ed28e4fc1
2 changed files with 2 additions and 2 deletions

View File

@ -1,5 +1,5 @@
self.OS.API.HOST = self.location.hostname+ (if self.location.port then":#{self.location.port}" else "")
self.OS.API.REST = "http://#{self.OS.API.HOST}/lua-api"
self.OS.API.REST = "https://#{self.OS.API.HOST}/lua-api"
_REST = self.OS.API.REST
self.OS.API.handler =

View File

@ -57,7 +57,7 @@ class wTerm extends this.OS.GUI.BaseApplication
me = @
@term.clear()
@term.focus()
@socket = new WebSocket "ws://" + @_api.HOST + "/wterm"
@socket = new WebSocket "wss://" + @_api.HOST + "/wterm"
@socket.onopen = () ->
#el.style.display = "none"
me.resizeContent (($ me.mterm).width()) , (($ me.mterm).height())