fix lua playground

This commit is contained in:
lxsang 2018-09-16 18:29:49 +00:00
parent f1b94435c5
commit f1ad6a4a2f
2 changed files with 2 additions and 2 deletions

View File

@ -44,7 +44,7 @@ class LuaPlayground extends this.OS.GUI.BaseApplication
value = @editor.getValue().trim()
return unless value and value isnt ""
proto = if window.location.protocol is "https:" then "wss://" else "ws://"
@socket = new WebSocket proto + @_api.HOST + "/lua-api/os/apigateway?ws=1"
@socket = new WebSocket proto + @_api.HOST + "/system/apigateway?ws=1"
@socket.onopen = () ->
#send data to server
me.socket.send( JSON.stringify { code: value } )

View File

@ -1 +1 @@
{"name":"OpenPage","root":"home://myws/antosdk-apps/OpenPage","css":["css/main.css","css/dialog.css"],"javascripts":["javascripts/webodf.js","javascripts/EditorSession.js"],"coffees":["coffees/main.coffee","coffees/dialogs.coffee"],"copies":["assets/scheme.html","package.json","README.md"]}
{"name":"OpenPage","root":"home://workspace/OpenPage","css":["css/main.css","css/dialog.css"],"javascripts":["javascripts/webodf.js","javascripts/EditorSession.js"],"coffees":["coffees/main.coffee","coffees/dialogs.coffee"],"copies":["assets/scheme.html","package.json","README.md"]}