mirror of
git://github.com/kovidgoyal/calibre.git
synced 2025-12-31 01:34:27 +01:00
Viewer: Also send a load event to the window object after the iframe loads
This commit is contained in:
parent
0de82426ff
commit
52d048ece3
1 changed files with 3 additions and 0 deletions
|
|
@ -459,6 +459,9 @@ def content_loaded_stage2(self):
|
|||
|
||||
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
|
||||
|
|
|
|||
Loading…
Reference in a new issue