@@ -1,5 +1,5 @@
|
||||
<template>
|
||||
<CreateMessageDeliveryOption :isLoading="isLoading" :label :method v-model="model" />
|
||||
<CreateMessageDeliveryOption :isLoading :label :method v-model="model" />
|
||||
|
||||
<!-- Ошибка разрешений -->
|
||||
<p v-if="isError && model === method" class="text-red-500 mb-2">
|
||||
@@ -44,6 +44,7 @@ async function requestNotificationPermission() {
|
||||
}
|
||||
|
||||
const registration = await navigator.serviceWorker.ready
|
||||
|
||||
const subscription = await registration.pushManager.subscribe({
|
||||
userVisibleOnly: true,
|
||||
applicationServerKey: await applicationServerKeyPromise,
|
||||
|
||||
Reference in New Issue
Block a user