summaryrefslogtreecommitdiff
path: root/js
diff options
context:
space:
mode:
authorAndrew Dolgov <[email protected]>2020-09-13 21:00:12 +0300
committerAndrew Dolgov <[email protected]>2020-09-13 21:00:12 +0300
commita57a672d537a5d2a78186c987237c5f941007a29 (patch)
tree3103fa18f02a4210a64abbcc0744d92c531c4cbc /js
parente538f89ec13575c1b92c2a011480849d4ac5fa61 (diff)
parent14d6b632fda15a01bd237ec849d0841af836ee40 (diff)
Merge branch 'master' of git.fakecake.org:epube
Diffstat (limited to 'js')
-rw-r--r--js/app.js3
1 files changed, 3 insertions, 0 deletions
diff --git a/js/app.js b/js/app.js
index 1816095..4f5631e 100644
--- a/js/app.js
+++ b/js/app.js
@@ -197,6 +197,9 @@ const App = {
.html("Could not communicate with service worker. Try reloading the page.");
}
},
+ appCheckOffline: function() {
+ EpubeApp.setOffline(!navigator.onLine);
+ },
initOfflineEvents: function() {
if (typeof EpubeApp != "undefined") {
$(window).on('online', function() {