diff --git a/src/sw/notification.ts b/src/sw/notification.ts index 0f464d5412..3b6dd3d226 100644 --- a/src/sw/notification.ts +++ b/src/sw/notification.ts @@ -88,6 +88,7 @@ export const setupNotification = async () => { // eslint-disable-next-line no-console console.warn('[sw] no store or me.detail found') data.body = `自分: ${event.reply}` + data.icon = `` } data.silent = true diff --git a/src/sw/store.ts b/src/sw/store.ts index 5d0b12c42e..12750e2327 100644 --- a/src/sw/store.ts +++ b/src/sw/store.ts @@ -5,7 +5,7 @@ import { storeName, key } from '/@/composables/utils/useIndexedDbValue' export const getMeStore = async () => { try { - const openReq = indexedDB.open(`${dbPrefix}domain/me`) + const openReq = indexedDB.open(`${dbPrefix}store/domain/me`) const db = await promisifyRequest(openReq) const getReq: IDBRequest = db .transaction(storeName)