Freeze epubReadingSystem

This commit is contained in:
Kovid Goyal 2017-04-07 10:29:29 +05:30
parent 195b083c3a
commit 3ed6951f2e
No known key found for this signature in database
GPG Key ID: 06BC317B515ACE7C

View File

@ -59,7 +59,7 @@ class EPUBReadingSystem:
class IframeBoss:
def __init__(self):
window.navigator.epubReadingSystem = EPUBReadingSystem()
window.navigator.epubReadingSystem = Object.freeze(EPUBReadingSystem())
self.ready_sent = False
self.last_cfi = None
self.replace_history_on_next_cfi_update = True