mirror of
https://github.com/kovidgoyal/calibre.git
synced 2025-07-09 03:04:10 -04:00
Only initialize the iframe on demand
This commit is contained in:
parent
691af88354
commit
37f604c0a1
@ -197,7 +197,7 @@ class View:
|
|||||||
def create_src_doc(self):
|
def create_src_doc(self):
|
||||||
iframe_script = main_js().replace(/is_running_in_iframe\s*=\s*false/, 'is_running_in_iframe = true')
|
iframe_script = main_js().replace(/is_running_in_iframe\s*=\s*false/, 'is_running_in_iframe = true')
|
||||||
main_js(None)
|
main_js(None)
|
||||||
self.src_doc = self.iframe.srcdoc = LOADING_DOC.replace(
|
self.src_doc = LOADING_DOC.replace(
|
||||||
'__BS__', _('Bootstrapping book reader...')).replace(
|
'__BS__', _('Bootstrapping book reader...')).replace(
|
||||||
'__SCRIPT__', iframe_script)
|
'__SCRIPT__', iframe_script)
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user