This commit is contained in:
Kovid Goyal 2019-10-17 15:30:16 +05:30
parent f8e4485bc3
commit bf3236db9b
No known key found for this signature in database
GPG Key ID: 06BC317B515ACE7C

View File

@ -224,10 +224,10 @@ class PopupIframeBoss:
show_footnote(self.frag, known_anchors)
def content_loaded(self):
document.body.classList.add('calibre-footnote-container')
if not self.comm.encrypted_communications:
window.setTimeout(self.content_loaded, 2)
return
document.body.classList.add('calibre-footnote-container')
apply_settings()
self.comm.send_message('content_loaded', height=document.documentElement.scrollHeight + 25)