From fe75d60bbf505a5272297bcc95d30c12a9721b4f Mon Sep 17 00:00:00 2001 From: Andrew Dolgov Date: Mon, 16 Nov 2020 14:03:56 +0300 Subject: set is-epube-app class based on JS host availability --- js/reader.js | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-) (limited to 'js/reader.js') 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"); -- cgit v1.2.3