From b0f6c44f36f3173f5d232d1adb02fc09dfdcc003 Mon Sep 17 00:00:00 2001 From: syuilo Date: Tue, 19 Sep 2023 16:37:43 +0900 Subject: refactor(frontend): use ESM --- packages/sw/src/scripts/create-notification.ts | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) (limited to 'packages/sw/src/scripts/create-notification.ts') diff --git a/packages/sw/src/scripts/create-notification.ts b/packages/sw/src/scripts/create-notification.ts index 97ff8a3101..2b7f91a741 100644 --- a/packages/sw/src/scripts/create-notification.ts +++ b/packages/sw/src/scripts/create-notification.ts @@ -7,11 +7,11 @@ * Notification manager for SW */ import type { BadgeNames, PushNotificationDataMap } from '@/types'; -import { char2fileName } from '@/scripts/twemoji-base'; -import { cli } from '@/scripts/operations'; -import { getAccountFromId } from '@/scripts/get-account-from-id'; -import { swLang } from '@/scripts/lang'; -import { getUserName } from '@/scripts/get-user-name'; +import { char2fileName } from '@/scripts/twemoji-base.js'; +import { cli } from '@/scripts/operations.js'; +import { getAccountFromId } from '@/scripts/get-account-from-id.js'; +import { swLang } from '@/scripts/lang.js'; +import { getUserName } from '@/scripts/get-user-name.js'; const closeNotificationsByTags = async (tags: string[]): Promise => { for (const n of (await Promise.all(tags.map(tag => globalThis.registration.getNotifications({ tag })))).flat()) { -- cgit v1.2.3-freya