Allow inject html command from ui server
This commit is contained in:
parent
2b611ae798
commit
7c1a4e353d
1 changed files with 3 additions and 0 deletions
|
@ -71,6 +71,9 @@ class Wrapper
|
||||||
else if cmd == "updating" # Close connection
|
else if cmd == "updating" # Close connection
|
||||||
@ws.ws.close()
|
@ws.ws.close()
|
||||||
@ws.onCloseWebsocket(null, 4000)
|
@ws.onCloseWebsocket(null, 4000)
|
||||||
|
else if cmd == "injectHtml"
|
||||||
|
console.log("inject", message)
|
||||||
|
$("body").append(message.params)
|
||||||
else
|
else
|
||||||
@sendInner message # Pass message to inner frame
|
@sendInner message # Pass message to inner frame
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue