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
|
from read_book.iframe import init
|
||||||
|
|
||||||
def on_library_loaded(end_type, xhr, ev):
|
def on_library_loaded(end_type, xhr, ev):
|
||||||
|
nonlocal main_js
|
||||||
p = document.getElementById('page_load_progress')
|
p = document.getElementById('page_load_progress')
|
||||||
p.parentNode.removeChild(p)
|
p.parentNode.removeChild(p)
|
||||||
if end_type is 'load':
|
if end_type is 'load':
|
||||||
interface_data = JSON.parse(xhr.responseText)
|
interface_data = JSON.parse(xhr.responseText)
|
||||||
interface_data.main_js = main_js
|
interface_data.main_js = main_js
|
||||||
|
main_js = None
|
||||||
script = document.getElementById('main_js')
|
script = document.getElementById('main_js')
|
||||||
if script:
|
if script:
|
||||||
script.parentNode.removeChild(script) # Free up some memory
|
script.parentNode.removeChild(script) # Free up some memory
|
||||||
|
Loading…
x
Reference in New Issue
Block a user