From 37f604c0a1ee20e661ae1c9aa400a821e664d27c Mon Sep 17 00:00:00 2001 From: Kovid Goyal Date: Wed, 22 Feb 2017 19:53:44 +0530 Subject: [PATCH] Only initialize the iframe on demand --- src/pyj/read_book/view.pyj | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/pyj/read_book/view.pyj b/src/pyj/read_book/view.pyj index 3cd246eff3..2c94b776f8 100644 --- a/src/pyj/read_book/view.pyj +++ b/src/pyj/read_book/view.pyj @@ -197,7 +197,7 @@ class View: def create_src_doc(self): iframe_script = main_js().replace(/is_running_in_iframe\s*=\s*false/, 'is_running_in_iframe = true') main_js(None) - self.src_doc = self.iframe.srcdoc = LOADING_DOC.replace( + self.src_doc = LOADING_DOC.replace( '__BS__', _('Bootstrapping book reader...')).replace( '__SCRIPT__', iframe_script)