diff options
| author | tamaina <tamaina@hotmail.co.jp> | 2021-02-06 18:55:53 +0900 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2021-02-06 18:55:53 +0900 |
| commit | 40bfa3ef0407f83484031bfe74dcecb149c202a0 (patch) | |
| tree | 8128fa49e2041e00f6b130cb150f6571cf2a5ec7 /src/client/init.ts | |
| parent | Resolve #7096 (diff) | |
| download | sharkey-40bfa3ef0407f83484031bfe74dcecb149c202a0.tar.gz sharkey-40bfa3ef0407f83484031bfe74dcecb149c202a0.tar.bz2 sharkey-40bfa3ef0407f83484031bfe74dcecb149c202a0.zip | |
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 <Syuilotan@yahoo.co.jp>
Diffstat (limited to 'src/client/init.ts')
| -rw-r--r-- | src/client/init.ts | 3 |
1 files changed, 2 insertions, 1 deletions
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); |