Update DiscordPreview.js

This commit is contained in:
Mirco Wittrien 2019-04-07 19:16:43 +02:00
parent 004a9f54f8
commit 14184d88d5
1 changed files with 4 additions and 0 deletions

View File

@ -26,6 +26,10 @@ window.onmessage = function (e) {
}
document.body.firstElementChild.style.removeProperty("display");
break;
case "Eval":
if (e.data.jsstring) eval(`(() => {${e.data.jsstring}})()`);
window.parent.postMessage({origin:"DiscordPreview",reason:"EvalResult",result:window.evalResult},"*");
break;
case "NewTheme":
case "CustomCSS":
case "ThemeFixer":