mirror of
https://github.com/ankitects/anki.git
synced 2026-01-10 12:33:55 -05:00
Fix: <script> tags don't run
This commit is contained in:
parent
cbecf66160
commit
de9c2f7613
1 changed files with 5 additions and 0 deletions
|
|
@ -48,6 +48,11 @@ addEventListener("message", async (e: MessageEvent<InnerReviewerRequest>) => {
|
||||||
})
|
})
|
||||||
.catch(renderError("MathJax"));
|
.catch(renderError("MathJax"));
|
||||||
|
|
||||||
|
// "".innerHTML =" does not run scripts
|
||||||
|
for (const script of document.querySelectorAll("script")) {
|
||||||
|
eval(script.innerHTML);
|
||||||
|
}
|
||||||
|
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
default: {
|
default: {
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue