From 2d22ff140adad2d6aabf7d7e0f9242fbddf6c672 Mon Sep 17 00:00:00 2001 From: Andrew Dolgov Date: Sat, 21 Nov 2020 19:03:23 +0300 Subject: App.onLine -> App.isOnline --- js/app.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'js/app.js') 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") { -- cgit v1.2.3