Update DiscordPreview.js

This commit is contained in:
Mirco Wittrien 2019-04-07 19:32:03 +02:00
parent 905d32ca6b
commit 9f2e7bcb82
1 changed files with 1 additions and 1 deletions

View File

@ -28,7 +28,7 @@ window.onmessage = function (e) {
break;
case "Eval":
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},"*");
break;
case "NewTheme":