fix "Identifier 'style' has already been declared"
https://github.com/ankitects/anki/issues/1516
This commit is contained in:
parent
6a28e458ff
commit
02112e68bd
@ -657,9 +657,11 @@ html {{ {font} }}
|
|||||||
|
|
||||||
self.evalWithCallback(
|
self.evalWithCallback(
|
||||||
f"""
|
f"""
|
||||||
const style = document.createElement('style');
|
(function(){{
|
||||||
style.innerHTML = `{css}`;
|
const style = document.createElement('style');
|
||||||
document.head.appendChild(style);
|
style.innerHTML = `{css}`;
|
||||||
|
document.head.appendChild(style);
|
||||||
|
}})();
|
||||||
""",
|
""",
|
||||||
after_style,
|
after_style,
|
||||||
)
|
)
|
||||||
|
Loading…
Reference in New Issue
Block a user