feat: pwa with push notifications (#337)
This commit is contained in:
parent
a18e5e2332
commit
f0c91a3974
48 changed files with 2903 additions and 14 deletions
|
@ -43,7 +43,11 @@ export default defineNuxtPlugin(async (nuxtApp) => {
|
|||
if (process.client) {
|
||||
const { query } = useRoute()
|
||||
const user = typeof query.server === 'string' && typeof query.token === 'string'
|
||||
? { server: query.server, token: query.token }
|
||||
? {
|
||||
server: query.server,
|
||||
token: query.token,
|
||||
vapidKey: typeof query.vapid_key === 'string' ? query.vapid_key : undefined,
|
||||
}
|
||||
: currentUser.value
|
||||
|
||||
nuxtApp.hook('app:suspense:resolve', () => {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue