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 }