summaryrefslogtreecommitdiff
path: root/js
diff options
context:
space:
mode:
authorAndrew Dolgov <[email protected]>2021-01-26 13:26:43 +0300
committerAndrew Dolgov <[email protected]>2021-01-26 13:26:43 +0300
commitdb5cf9263dfacd6fd7f578b64de1d92088783e63 (patch)
treeb1f9a3ecb5c9374ea81a38af573628d769598d84 /js
parent90791fc4d4b703a4a040157348705dca16fc1409 (diff)
prevent white flashes in dark mode
Diffstat (limited to 'js')
-rw-r--r--js/reader.js5
1 files changed, 4 insertions, 1 deletions
diff --git a/js/reader.js b/js/reader.js
index b8549c5..70807a9 100644
--- a/js/reader.js
+++ b/js/reader.js
@@ -497,6 +497,8 @@ const Reader = {
$(doc).find("a, p, span, em, i, strong, b, body, div, big, small")
.attr("class", "")
+ .css("font-family", "inherit")
+ .css("font-size", "inherit")
.css("color", "")
.css("background", "")
.css("background-color", "");
@@ -858,7 +860,8 @@ const Reader = {
$("body")
.attr("class", typeof EpubeApp != "undefined" ? "is-epube-app" : "")
- .addClass("epube-reader theme-" + theme);
+ .addClass("epube-reader theme-" + theme)
+ .attr("data-is-loading", "false");
if (typeof EpubeApp != "undefined") {