kopia lustrzana https://github.com/elk-zone/elk
chore: fix some service-worker paths
rodzic
552169cfd9
commit
279a8bbfaf
|
@ -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,
|
||||
|
|
|
@ -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')
|
||||
|
|
Ładowanie…
Reference in New Issue