This commit is contained in:
Kovid Goyal 2021-03-14 20:11:00 +05:30
parent f034a62ec2
commit a2650969a9
No known key found for this signature in database
GPG Key ID: 06BC317B515ACE7C

View File

@ -429,9 +429,10 @@ class IframeBoss:
if runtime.is_standalone_viewer:
self.listen_for_image_double_clicks()
self.content_ready = True
# this is the loading styles used to suppress scrollbars during load
# added in unserialize_html
document.head.removeChild(document.head.firstChild)
if document.head?.firstChild:
# this is the loading styles used to suppress scrollbars during load
# added in unserialize_html
document.head.removeChild(document.head.firstChild)
csi = current_spine_item()
if csi.initial_position: