diff --git a/src/Ui/media/all.js b/src/Ui/media/all.js index 8b5b457a..6a1f8af1 100644 --- a/src/Ui/media/all.js +++ b/src/Ui/media/all.js @@ -913,6 +913,9 @@ jQuery.extend( jQuery.easing, } else if (cmd === "updating") { this.ws.ws.close(); return this.ws.onCloseWebsocket(null, 4000); + } else if (cmd === "injectHtml") { + console.log("inject", message); + return $("body").append(message.params); } else { return this.sendInner(message); } @@ -1148,6 +1151,9 @@ jQuery.extend( jQuery.easing, Wrapper.prototype.displayPrompt = function(message, type, caption, placeholder, cb) { var body, button, input; body = $("" + message + ""); + if (placeholder == null) { + placeholder = ""; + } input = $(""); input.on("keyup", (function(_this) { return function(e) {