about summary refs log tree commit diff stats
path: root/offline.html
diff options
context:
space:
mode:
authorAndrew Dolgov <fox@fakecake.org>2026-03-21 18:40:41 +0300
committerAndrew Dolgov <fox@fakecake.org>2026-03-21 18:40:41 +0300
commitfc0f29c411096e847f33976ccddc9c30a1fb6600 (patch)
tree0b6e464ee18974b7592c49a5960d20f627b29d79 /offline.html
parentfbf06987e8f9d4ce505c5c957eb9266c79d210c4 (diff)
downloadthe-epube-fc0f29c411096e847f33976ccddc9c30a1fb6600.tar.gz
the-epube-fc0f29c411096e847f33976ccddc9c30a1fb6600.tar.xz
classy App
Diffstat (limited to 'offline.html')
-rw-r--r--offline.html10
1 files changed, 8 insertions, 2 deletions
diff --git a/offline.html b/offline.html
index 3545127..efb414c 100644
--- a/offline.html
+++ b/offline.html
@@ -15,6 +15,8 @@
 	<script type="text/javascript">
 		'use strict';
 
+		const App = new AppClass();
+
 		if ('serviceWorker' in navigator) {
 			navigator.serviceWorker
 					.register('worker.js')
@@ -22,7 +24,7 @@
 						console.log("service worker registered");
 
 						$(document).ready(function() {
-							App.Offline.init();
+							App.offlineInit();
 						});
 					});
 		} else {
@@ -65,7 +67,11 @@
 		</form>
 
 		<ul class="nav navbar-nav navbar-right">
-			<li><a href="#" onclick="App.Offline.removeAll()" title="Remove all downloads">
+			<li><a href="#" title="Refresh script cache" onclick="return App.refreshCache(true)">
+				<span class="glyphicon glyphicon-refresh"></span> <span class='hidden-sm hidden-md hidden-lg'>Refresh script cache</span></a></li>
+			</li>
+
+			<li><a href="#" onclick="App.removeAll()" title="Remove all downloads">
 				<span class="glyphicon glyphicon-remove-circle text-danger"></span> <span class='hidden-sm hidden-md hidden-lg'>Remove all downloads</span>
 			</a></li>
 		</ul>