mirror of
https://github.com/ankitects/anki.git
synced 2025-09-18 22:12:21 -04:00
Silence 'link preload' warning on the first card
Due to 207e425
, a harmless warning about 'link preload' will be output
to the console on the first card.
This commit is contained in:
parent
207e4253f1
commit
dd9528aa73
1 changed files with 3 additions and 0 deletions
|
@ -106,6 +106,9 @@ class AnkiWebPage(QWebEnginePage):
|
|||
if "MathJax localStorage" in buf:
|
||||
# silence localStorage noise
|
||||
return
|
||||
elif "link preload" in buf:
|
||||
# silence 'link preload' warning on the first card
|
||||
return
|
||||
# ensure we don't try to write characters the terminal can't handle
|
||||
buf = buf.encode(sys.stdout.encoding, "backslashreplace").decode(
|
||||
sys.stdout.encoding
|
||||
|
|
Loading…
Reference in a new issue