fix "Identifier 'style' has already been declared"

https://github.com/ankitects/anki/issues/1516
This commit is contained in:
Damien Elmes 2022-02-11 14:34:00 +10:00
parent 6a28e458ff
commit 02112e68bd

View File

@ -657,9 +657,11 @@ html {{ {font} }}
self.evalWithCallback(
f"""
(function(){{
const style = document.createElement('style');
style.innerHTML = `{css}`;
document.head.appendChild(style);
}})();
""",
after_style,
)