mirror of
https://github.com/kovidgoyal/calibre.git
synced 2025-07-09 03:04:10 -04:00
Avoid JS errors when previewing non html documents such as svg images
This commit is contained in:
parent
37c35a1ec4
commit
2fa3561aef
@ -207,6 +207,7 @@ def load_mathjax():
|
|||||||
document.head.appendChild(script)
|
document.head.appendChild(script)
|
||||||
|
|
||||||
|
|
||||||
|
if document.body:
|
||||||
document.body.addEventListener('click', onclick, True)
|
document.body.addEventListener('click', onclick, True)
|
||||||
document.documentElement.appendChild(E.style(
|
document.documentElement.appendChild(E.style(
|
||||||
type='text/css',
|
type='text/css',
|
||||||
|
Loading…
x
Reference in New Issue
Block a user