Update DiscordPreview.js
This commit is contained in:
parent
004a9f54f8
commit
14184d88d5
|
@ -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":
|
||||
|
|
Loading…
Reference in New Issue