summaryrefslogtreecommitdiff
path: root/js/app.js
diff options
context:
space:
mode:
authorAndrew Dolgov <[email protected]>2020-11-21 19:03:23 +0300
committerAndrew Dolgov <[email protected]>2020-11-21 19:03:23 +0300
commit2d22ff140adad2d6aabf7d7e0f9242fbddf6c672 (patch)
treefb5898473f40707a5630776837429997cc6df44f /js/app.js
parent8193d20d390c1fc4038ce586fc27ad52b3b8b9d0 (diff)
App.onLine -> App.isOnline
Diffstat (limited to 'js/app.js')
-rw-r--r--js/app.js4
1 files changed, 2 insertions, 2 deletions
diff --git a/js/app.js b/js/app.js
index 6a7146e..04fd5f1 100644
--- a/js/app.js
+++ b/js/app.js
@@ -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") {