summaryrefslogtreecommitdiff
path: root/js
diff options
context:
space:
mode:
Diffstat (limited to 'js')
-rw-r--r--js/reader.js4
1 files changed, 2 insertions, 2 deletions
diff --git a/js/reader.js b/js/reader.js
index 769c4cc..cc823b5 100644
--- a/js/reader.js
+++ b/js/reader.js
@@ -27,8 +27,6 @@ const Reader = {
if (typeof EpubeApp != "undefined") {
EpubeApp.setPage("PAGE_READER");
-
- $("body").addClass("is-epube-app");
}
Reader.applyTheme();
@@ -791,6 +789,8 @@ const Reader = {
.addClass("epube-reader theme-" + theme);
if (typeof EpubeApp != "undefined") {
+ $("body").addClass("is-epube-app");
+
window.setTimeout(function() {
const bg_color = window.getComputedStyle(document.querySelector("body"), null)
.getPropertyValue("background-color");