From c1a272099ce050f62ddcb125e3175bb1c66176e0 Mon Sep 17 00:00:00 2001 From: Kovid Goyal Date: Fri, 25 Mar 2016 14:27:49 +0530 Subject: [PATCH] ... --- src/pyj/srv.pyj | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/pyj/srv.pyj b/src/pyj/srv.pyj index 473bf5962d..2da0623464 100644 --- a/src/pyj/srv.pyj +++ b/src/pyj/srv.pyj @@ -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