feat: add pwa install button (#27)
* feat: add pwa tooltip * feat: add pwa install button
This commit is contained in:
12
src/stores/app.ts
Normal file
12
src/stores/app.ts
Normal file
@@ -0,0 +1,12 @@
|
||||
import { acceptHMRUpdate, defineStore } from 'pinia'
|
||||
|
||||
export const useAppStore = defineStore('app', () => {
|
||||
const deferredPrompt = ref<Event | any>()
|
||||
|
||||
return {
|
||||
deferredPrompt,
|
||||
}
|
||||
})
|
||||
|
||||
if (import.meta.hot)
|
||||
import.meta.hot.accept(acceptHMRUpdate(useAppStore, import.meta.hot))
|
||||
Reference in New Issue
Block a user