summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--js/reader.js10
1 files changed, 8 insertions, 2 deletions
diff --git a/js/reader.js b/js/reader.js
index 923a000..a54bea0 100644
--- a/js/reader.js
+++ b/js/reader.js
@@ -244,10 +244,16 @@ const Reader = {
});
localforage.getItem("epube.cache-timestamp").then(function(stamp) {
+ let msg = "V: ";
+
if (parseInt(stamp))
- $(".last-mod-timestamp").text("V: " + new Date(stamp*1000).toLocaleString("en-GB"))
+ msg += new Date(stamp*1000).toLocaleString("en-GB");
else
- $(".last-mod-timestamp").text("");
+ msg += "Unknown";
+
+ msg += " (" + (navigator.onLine ? "Online" : "Offline") + ")";
+
+ $(".last-mod-timestamp").text(msg)
});
localforage.getItem("epube.fontFamily").then(function(font) {