Allow inject html command from ui server

This commit is contained in:
shortcutme 2017-11-29 13:48:07 +01:00
parent 2b611ae798
commit 7c1a4e353d
No known key found for this signature in database
GPG key ID: 5B63BAE6CB9613AE

View file

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