|
@ -394,7 +394,7 @@ export default class HelpNotificationsView extends Vue { |
|
|
notifyingReminderTime = ""; |
|
|
notifyingReminderTime = ""; |
|
|
|
|
|
|
|
|
// Notification helper system |
|
|
// Notification helper system |
|
|
notify = createNotifyHelpers(this.$notify); |
|
|
notify!: ReturnType<typeof createNotifyHelpers>; |
|
|
|
|
|
|
|
|
/** |
|
|
/** |
|
|
* Computed property for consistent button styling |
|
|
* Computed property for consistent button styling |
|
@ -430,6 +430,9 @@ export default class HelpNotificationsView extends Vue { |
|
|
* Handles errors gracefully with proper logging without exposing sensitive data. |
|
|
* Handles errors gracefully with proper logging without exposing sensitive data. |
|
|
*/ |
|
|
*/ |
|
|
async mounted() { |
|
|
async mounted() { |
|
|
|
|
|
// Initialize notification helpers |
|
|
|
|
|
this.notify = createNotifyHelpers(this.$notify); |
|
|
|
|
|
|
|
|
try { |
|
|
try { |
|
|
const registration = await navigator.serviceWorker?.ready; |
|
|
const registration = await navigator.serviceWorker?.ready; |
|
|
const fullSub = await registration?.pushManager.getSubscription(); |
|
|
const fullSub = await registration?.pushManager.getSubscription(); |
|
|