diff options
author | Andrew Dolgov <[email protected]> | 2020-11-21 19:03:23 +0300 |
---|---|---|
committer | Andrew Dolgov <[email protected]> | 2020-11-21 19:03:23 +0300 |
commit | 2d22ff140adad2d6aabf7d7e0f9242fbddf6c672 (patch) | |
tree | fb5898473f40707a5630776837429997cc6df44f /js/app.js | |
parent | 8193d20d390c1fc4038ce586fc27ad52b3b8b9d0 (diff) |
App.onLine -> App.isOnline
Diffstat (limited to 'js/app.js')
-rw-r--r-- | js/app.js | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -198,14 +198,14 @@ const App = { .html("Could not communicate with service worker. Try reloading the page."); } }, - onLine: function() { + isOnline: function() { if (typeof EpubeApp != "undefined" && typeof EpubeApp.isOnline != "undefined") return EpubeApp.isOnline(); else return navigator.onLine; }, appCheckOffline: function() { - EpubeApp.setOffline(!App.onLine); + EpubeApp.setOffline(!App.isOnline); }, initNightMode: function() { if (typeof EpubeApp != "undefined") { |