mirror of
https://github.com/kovidgoyal/calibre.git
synced 2025-07-09 03:04:10 -04:00
...
This commit is contained in:
parent
60ddc3176b
commit
c1a272099c
@ -12,11 +12,13 @@ from book_list.globals import set_session_data
|
||||
from read_book.iframe import init
|
||||
|
||||
def on_library_loaded(end_type, xhr, ev):
|
||||
nonlocal main_js
|
||||
p = document.getElementById('page_load_progress')
|
||||
p.parentNode.removeChild(p)
|
||||
if end_type is 'load':
|
||||
interface_data = JSON.parse(xhr.responseText)
|
||||
interface_data.main_js = main_js
|
||||
main_js = None
|
||||
script = document.getElementById('main_js')
|
||||
if script:
|
||||
script.parentNode.removeChild(script) # Free up some memory
|
||||
|
Loading…
x
Reference in New Issue
Block a user