summaryrefslogtreecommitdiff
path: root/read.html
diff options
context:
space:
mode:
authorAndrew Dolgov <[email protected]>2018-06-29 18:14:27 +0300
committerAndrew Dolgov <[email protected]>2018-06-29 18:14:27 +0300
commitf738e738eb2a353498da91272c565eb44d0d6250 (patch)
treed8f9703a8d3cec95ac20b1e7296a3cdb03af6565 /read.html
parentcad12aef84254da925f793a0eb54c5cee06d0fd0 (diff)
fix issues with splash not always hiding if open_lastread() fails on startup
Diffstat (limited to 'read.html')
-rw-r--r--read.html5
1 files changed, 3 insertions, 2 deletions
diff --git a/read.html b/read.html
index 2458e7f..bc0fce2 100644
--- a/read.html
+++ b/read.html
@@ -705,6 +705,9 @@
});
open_lastread();
+
+ $(".loading").hide();
+
});
rendition.on("keyup", hotkey_handler);
@@ -776,8 +779,6 @@
if (book.locations.length() == 0)
return;
- $(".loading").hide();
-
var currentCfi = location.start.cfi;
var currentPage = parseInt(book.locations.percentageFromCfi(currentCfi) * 100);
var pct = book.locations.percentageFromCfi(currentCfi);