diff options
author | Andrew Dolgov <[email protected]> | 2020-09-13 21:00:12 +0300 |
---|---|---|
committer | Andrew Dolgov <[email protected]> | 2020-09-13 21:00:12 +0300 |
commit | a57a672d537a5d2a78186c987237c5f941007a29 (patch) | |
tree | 3103fa18f02a4210a64abbcc0744d92c531c4cbc /js/app.js | |
parent | e538f89ec13575c1b92c2a011480849d4ac5fa61 (diff) | |
parent | 14d6b632fda15a01bd237ec849d0841af836ee40 (diff) |
Merge branch 'master' of git.fakecake.org:epube
Diffstat (limited to 'js/app.js')
-rw-r--r-- | js/app.js | 3 |
1 files changed, 3 insertions, 0 deletions
@@ -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() {
|