chore: fix some service-worker paths

pull/3298/head
Daniel Roe 2025-05-19 22:33:45 -04:00
rodzic 552169cfd9
commit 279a8bbfaf
Nie znaleziono w bazie danych klucza dla tego podpisu
ID klucza GPG: CBC814C393D93268
2 zmienionych plików z 2 dodań i 2 usunięć

Wyświetl plik

@ -6,7 +6,7 @@ export const pwa: VitePWANuxtOptions = {
// disable PWA only when in preview mode
disable: /* temporarily test in CI isPreview || */ (isDevelopment && process.env.VITE_DEV_PWA !== 'true'),
scope: '/',
srcDir: './service-worker',
srcDir: '../service-worker',
filename: 'elk-sw.ts',
strategies: 'injectManifest',
injectRegister: false,

Wyświetl plik

@ -1,5 +1,5 @@
import type { MastoNotification, NotificationInfo, PushPayload, UserLogin } from './types'
import { closeDatabases, get } from '../utils/elk-idb'
import { closeDatabases, get } from '../app/utils/elk-idb'
export async function findNotification({ access_token, notification_id/* , notification_type */ }: PushPayload): Promise<NotificationInfo | undefined> {
const users = await get<UserLogin[]>('elk-users')