From 13be0d6712bf46339184782e0c5718e7f837eef9 Mon Sep 17 00:00:00 2001 From: Kovid Goyal Date: Thu, 8 Aug 2019 23:30:04 +0530 Subject: [PATCH] ... --- src/pyj/iframe_comm.pyj | 4 +++- src/pyj/read_book/iframe.pyj | 1 - 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/src/pyj/iframe_comm.pyj b/src/pyj/iframe_comm.pyj index 35c178c298..6d22b13d6f 100644 --- a/src/pyj/iframe_comm.pyj +++ b/src/pyj/iframe_comm.pyj @@ -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() diff --git a/src/pyj/read_book/iframe.pyj b/src/pyj/read_book/iframe.pyj index b2ca326552..cdd63cdd1f 100644 --- a/src/pyj/read_book/iframe.pyj +++ b/src/pyj/read_book/iframe.pyj @@ -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