mirror of
https://github.com/kovidgoyal/calibre.git
synced 2025-07-09 03:04:10 -04:00
Dont assume head exists
This commit is contained in:
parent
cae36d2cc1
commit
50ed25a6d9
@ -256,7 +256,7 @@ class PreviewIntegration:
|
|||||||
if window is window.top:
|
if window is window.top:
|
||||||
setTimeout(self.connect_channel, 10)
|
setTimeout(self.connect_channel, 10)
|
||||||
document.body.addEventListener('click', self.onclick, True)
|
document.body.addEventListener('click', self.onclick, True)
|
||||||
document.head.appendChild(E.style(
|
document.documentElement.appendChild(E.style(
|
||||||
type='text/css',
|
type='text/css',
|
||||||
'[data-in-split-mode="1"] [data-is-block="1"]:hover { cursor: pointer !important; border-top: solid 5px green !important }'
|
'[data-in-split-mode="1"] [data-is-block="1"]:hover { cursor: pointer !important; border-top: solid 5px green !important }'
|
||||||
))
|
))
|
||||||
|
Loading…
x
Reference in New Issue
Block a user