From c52e08afa9ab1dd2dbf731b6e57710f34e9e7e2c Mon Sep 17 00:00:00 2001 From: Fabian Date: Tue, 18 Jun 2019 23:28:07 +0200 Subject: [PATCH] Adding clear cache button to settings --- public/serviceworker.js | 1 + src/components/Footer.tsx | 2 +- src/components/routes/settings/Settings.tsx | 1 + 3 files changed, 3 insertions(+), 1 deletion(-) diff --git a/public/serviceworker.js b/public/serviceworker.js index 0301b94..0671772 100644 --- a/public/serviceworker.js +++ b/public/serviceworker.js @@ -30,6 +30,7 @@ self.addEventListener('message', (event) => { if (event.data === "clear_cache") { log("Clearing cache"); caches.delete(CACHE); + event.waitUntil(precache()); } if (event.data === "update_index") { diff --git a/src/components/Footer.tsx b/src/components/Footer.tsx index 2050a48..c6a3a95 100644 --- a/src/components/Footer.tsx +++ b/src/components/Footer.tsx @@ -65,7 +65,7 @@ export class Footer extends Component<{}, { synced: boolean, syncing: boolean }> Welcome {Notes.name} - v1.3 + v1.4 } diff --git a/src/components/routes/settings/Settings.tsx b/src/components/routes/settings/Settings.tsx index 90b5196..9479208 100644 --- a/src/components/routes/settings/Settings.tsx +++ b/src/components/routes/settings/Settings.tsx @@ -18,6 +18,7 @@ export default class SettingsPage extends Page<{ state: any }, { vault: string }
+
; }