From f1ad6a4a2f66bcea6e92a4b6c3c2ed4484915f2b Mon Sep 17 00:00:00 2001 From: lxsang Date: Sun, 16 Sep 2018 18:29:49 +0000 Subject: [PATCH] fix lua playground --- LuaPlayground/coffees/main.coffee | 2 +- OpenPage/project.apj | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/LuaPlayground/coffees/main.coffee b/LuaPlayground/coffees/main.coffee index 6d059b2..0b4480d 100644 --- a/LuaPlayground/coffees/main.coffee +++ b/LuaPlayground/coffees/main.coffee @@ -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 } ) diff --git a/OpenPage/project.apj b/OpenPage/project.apj index 55c2ed8..ce6e0a0 100644 --- a/OpenPage/project.apj +++ b/OpenPage/project.apj @@ -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"]} \ No newline at end of file +{"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"]} \ No newline at end of file