Update DiscordPreview.js
This commit is contained in:
parent
905d32ca6b
commit
9f2e7bcb82
|
@ -28,7 +28,7 @@ window.onmessage = function (e) {
|
||||||
break;
|
break;
|
||||||
case "Eval":
|
case "Eval":
|
||||||
window.evalResult = null;
|
window.evalResult = null;
|
||||||
if (e.data.jsstring) eval(`(() => {${e.data.jsstring}})()`);
|
if (e.data.jsstring) window.eval(`(() => {${e.data.jsstring}})()`);
|
||||||
window.parent.postMessage({origin:"DiscordPreview",reason:"EvalResult",result:window.evalResult},"*");
|
window.parent.postMessage({origin:"DiscordPreview",reason:"EvalResult",result:window.evalResult},"*");
|
||||||
break;
|
break;
|
||||||
case "NewTheme":
|
case "NewTheme":
|
||||||
|
|
Loading…
Reference in New Issue