diff options
author | Andrew Dolgov <[email protected]> | 2020-11-16 14:03:56 +0300 |
---|---|---|
committer | Andrew Dolgov <[email protected]> | 2020-11-16 14:03:56 +0300 |
commit | fe75d60bbf505a5272297bcc95d30c12a9721b4f (patch) | |
tree | 97253add7863bbcbffbffd16d7a1bd8ecbcd0489 /js | |
parent | 9335350514da8d6c094f2e5bd5060a6ff8e52c25 (diff) |
set is-epube-app class based on JS host availability
Diffstat (limited to 'js')
-rw-r--r-- | js/reader.js | 8 |
1 files changed, 2 insertions, 6 deletions
diff --git a/js/reader.js b/js/reader.js index 64f0d36..769c4cc 100644 --- a/js/reader.js +++ b/js/reader.js @@ -27,16 +27,12 @@ const Reader = { if (typeof EpubeApp != "undefined") { EpubeApp.setPage("PAGE_READER"); - } - - Reader.applyTheme(); - /* global Cookie */ - - if (Cookie.get("is-epube-app") == "true") { $("body").addClass("is-epube-app"); } + Reader.applyTheme(); + $(window).on('online', function() { console.log("we're online, storing lastread"); |