diff --git a/src/pyj/read_book/iframe.pyj b/src/pyj/read_book/iframe.pyj index f7fef6334d..3a26259ace 100644 --- a/src/pyj/read_book/iframe.pyj +++ b/src/pyj/read_book/iframe.pyj @@ -459,6 +459,9 @@ class IframeBoss: window.setTimeout(self.update_cfi, 0) window.setTimeout(self.update_toc_position, 0) + load_event = document.createEvent('Event') + load_event.initEvent('load', False, False) + window.dispatchEvent(load_event) def calculate_progress_frac(self): current_name = current_spine_item().name