From 40bfa3ef0407f83484031bfe74dcecb149c202a0 Mon Sep 17 00:00:00 2001 From: tamaina Date: Sat, 6 Feb 2021 18:55:53 +0900 Subject: Resurrect Service Worker (#7108) * Resolve #7106 * fix lint * fix lint * save lang in idb * fix lint * fix * cache locale file * fix lint * :v: * wip * fix [wip] * fix [wip] Co-authored-by: syuilo --- src/client/init.ts | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'src/client/init.ts') diff --git a/src/client/init.ts b/src/client/init.ts index f329d22251..17feca4c8b 100644 --- a/src/client/init.ts +++ b/src/client/init.ts @@ -57,6 +57,7 @@ import { fetchInstance, instance } from '@/instance'; import { makeHotkey } from './scripts/hotkey'; import { search } from './scripts/search'; import { getThemes } from './theme-store'; +import { initializeSw } from './scripts/initialize-sw'; console.info(`Misskey v${version}`); @@ -171,7 +172,7 @@ fetchInstance().then(() => { localStorage.setItem('v', instance.version); // Init service worker - //if (this.store.state.instance.meta.swPublickey) this.registerSw(this.store.state.instance.meta.swPublickey); + initializeSw(); }); stream.init($i); -- cgit v1.2.3-freya