chore: bump to eslint-config v2.8.0
(#2651)
Co-authored-by: Anthony Fu <anthonyfu117@hotmail.com>
This commit is contained in:
parent
62f70250d5
commit
9da77637b2
48 changed files with 896 additions and 511 deletions
|
@ -6,10 +6,12 @@ import type {
|
|||
} from '~/composables/push-notifications/types'
|
||||
import { PushSubscriptionError } from '~/composables/push-notifications/types'
|
||||
|
||||
export async function createPushSubscription(user: RequiredUserLogin,
|
||||
export async function createPushSubscription(
|
||||
user: RequiredUserLogin,
|
||||
notificationData: CreatePushNotification,
|
||||
policy: mastodon.v1.WebPushSubscriptionPolicy = 'all',
|
||||
force = false): Promise<mastodon.v1.WebPushSubscription | undefined> {
|
||||
force = false,
|
||||
): Promise<mastodon.v1.WebPushSubscription | undefined> {
|
||||
const { server: serverEndpoint, vapidKey } = user
|
||||
|
||||
return await getRegistration()
|
||||
|
|
|
@ -87,7 +87,10 @@ export function usePushManager() {
|
|||
|
||||
currentUser.value.pushSubscription = await createPushSubscription(
|
||||
{
|
||||
pushSubscription, server, token, vapidKey,
|
||||
pushSubscription,
|
||||
server,
|
||||
token,
|
||||
vapidKey,
|
||||
},
|
||||
notificationData ?? {
|
||||
alerts: {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue