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(
|
||||
f"""
|
||||
(function(){{
|
||||
const style = document.createElement('style');
|
||||
style.innerHTML = `{css}`;
|
||||
document.head.appendChild(style);
|
||||
}})();
|
||||
""",
|
||||
after_style,
|
||||
)
|
||||
|
Loading…
Reference in New Issue
Block a user