chore(pwa): improve DX for $pwa
(#2498)
This commit is contained in:
parent
3dbdb99118
commit
9155c32ece
4 changed files with 40 additions and 17 deletions
|
@ -1,4 +1,6 @@
|
|||
import { useRegisterSW } from 'virtual:pwa-register/vue'
|
||||
import type { UnwrapNestedRefs } from 'vue'
|
||||
import type { PwaInjection } from './types'
|
||||
import { STORAGE_KEY_PWA_HIDE_INSTALL } from '~/constants'
|
||||
|
||||
export default defineNuxtPlugin(() => {
|
||||
|
@ -115,7 +117,7 @@ export default defineNuxtPlugin(() => {
|
|||
needRefresh,
|
||||
updateServiceWorker,
|
||||
close,
|
||||
}),
|
||||
}) satisfies UnwrapNestedRefs<PwaInjection>,
|
||||
},
|
||||
}
|
||||
})
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue