summaryrefslogtreecommitdiff
path: root/packages/frontend/src/scripts/initialize-sw.ts
diff options
context:
space:
mode:
authorShun Sakai <sorairolake@protonmail.ch>2023-07-27 14:31:52 +0900
committerGitHub <noreply@github.com>2023-07-27 14:31:52 +0900
commitc2370a1be631355e709c47d3b5e9469906116b84 (patch)
tree75071c994f444f3ceea6ad0225e09b9374ca02ca /packages/frontend/src/scripts/initialize-sw.ts
parentchore: update pnpm to 8.6.10 (diff)
downloadmisskey-c2370a1be631355e709c47d3b5e9469906116b84.tar.gz
misskey-c2370a1be631355e709c47d3b5e9469906116b84.tar.bz2
misskey-c2370a1be631355e709c47d3b5e9469906116b84.zip
chore: 著作権とライセンスについての情報を各ファイルに追加する (#11348)
* chore: Add the SPDX information to each file Add copyright and licensing information as defined in version 3.0 of the REUSE Specification. * tweak format --------- Co-authored-by: syuilo <Syuilotan@yahoo.co.jp>
Diffstat (limited to '')
-rw-r--r--packages/frontend/src/scripts/initialize-sw.ts7
1 files changed, 6 insertions, 1 deletions
diff --git a/packages/frontend/src/scripts/initialize-sw.ts b/packages/frontend/src/scripts/initialize-sw.ts
index de52f30523..538554fa64 100644
--- a/packages/frontend/src/scripts/initialize-sw.ts
+++ b/packages/frontend/src/scripts/initialize-sw.ts
@@ -1,9 +1,14 @@
+/*
+ * SPDX-FileCopyrightText: syuilo and other misskey contributors
+ * SPDX-License-Identifier: AGPL-3.0-only
+ */
+
import { lang } from '@/config';
export async function initializeSw() {
if (!('serviceWorker' in navigator)) return;
- navigator.serviceWorker.register(`/sw.js`, { scope: '/', type: 'classic' });
+ navigator.serviceWorker.register('/sw.js', { scope: '/', type: 'classic' });
navigator.serviceWorker.ready.then(registration => {
registration.active?.postMessage({
msg: 'initialize',