mirror of
https://github.com/ankitects/anki.git
synced 2026-01-10 12:33:55 -05:00
Added: Comment
This commit is contained in:
parent
f38a3439f7
commit
74c27c8196
1 changed files with 1 additions and 0 deletions
|
|
@ -65,6 +65,7 @@ addEventListener("message", async (e: MessageEvent<InnerReviewerRequest>) => {
|
||||||
|
|
||||||
// "".innerHTML =" does not run scripts
|
// "".innerHTML =" does not run scripts
|
||||||
for (const script of document.querySelectorAll("script")) {
|
for (const script of document.querySelectorAll("script")) {
|
||||||
|
// strict mode prevents the use of "eval" here
|
||||||
const parent = script.parentElement!;
|
const parent = script.parentElement!;
|
||||||
const _script = script.parentElement!.removeChild(script);
|
const _script = script.parentElement!.removeChild(script);
|
||||||
const new_script = document.createElement("script");
|
const new_script = document.createElement("script");
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue