summaryrefslogtreecommitdiff
path: root/js/app.js
diff options
context:
space:
mode:
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") {