diff options
author | Andrew Dolgov <[email protected]> | 2020-11-16 14:16:35 +0300 |
---|---|---|
committer | Andrew Dolgov <[email protected]> | 2020-11-16 14:16:35 +0300 |
commit | 93b86ef80905b81c1dbc98d69f08cf16f9d94a53 (patch) | |
tree | d13e6e73dc976cae7933445a6b9b35b4bce3c799 /js/reader.js | |
parent | fe75d60bbf505a5272297bcc95d30c12a9721b4f (diff) |
fix is-epube-app class being reset in Reader.applyTheme
Diffstat (limited to 'js/reader.js')
-rw-r--r-- | js/reader.js | 4 |
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"); |