mirror of
https://github.com/kovidgoyal/calibre.git
synced 2025-07-09 03:04:10 -04:00
Viewer: Also send a load event to the window object after the iframe loads
This commit is contained in:
parent
0de82426ff
commit
52d048ece3
@ -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
|
||||
|
Loading…
x
Reference in New Issue
Block a user