This commit is contained in:
Kovid Goyal 2019-08-08 23:30:04 +05:30
parent 332f1e7e63
commit 13be0d6712
No known key found for this signature in database
GPG Key ID: 06BC317B515ACE7C
2 changed files with 3 additions and 2 deletions

View File

@ -135,11 +135,13 @@ class IframeWrapper:
print('Could not process message from iframe:')
console.log(e)
return
if not data.action:
return
func = self.handlers[data.action]
if func:
func(data)
else:
print('Unknown action in message from iframe to parent: ' + data.action)
print('Unknown action in message from iframe to parent:', data.action)
def on_iframe_ready(self, data):
self.messenger.reset()

View File

@ -71,7 +71,6 @@ class IframeBoss:
window.navigator.epubReadingSystem = EPUBReadingSystem()
self.last_cfi = None
self.replace_history_on_next_cfi_update = True
self.encrypted_communications = False
self.blob_url_map = {}
self.resource_urls = {}
self.content_ready = False