From 40dc552c8d427eb68a34eaec42a74395e585911e Mon Sep 17 00:00:00 2001 From: Max Litruv Boonzaayer Date: Sun, 17 May 2026 16:48:34 +1000 Subject: [PATCH] fix: Update import statement for Capacitor local notifications module ID --- src/app/utils/tauri.ts | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/app/utils/tauri.ts b/src/app/utils/tauri.ts index 16b3199..14c936f 100644 --- a/src/app/utils/tauri.ts +++ b/src/app/utils/tauri.ts @@ -119,6 +119,8 @@ let notificationTapCallback: ((path: string) => void) | null = null; const ANDROID_NOTIFICATION_SMALL_ICON = 'ic_stat_paarrot'; const ANDROID_NOTIFICATION_ICON_COLOR = '#FF8A00'; +const CAPACITOR_LOCAL_NOTIFICATIONS_MODULE_ID = '@capacitor/local-notifications'; + type CapacitorLocalNotificationsModule = typeof import('@capacitor/local-notifications'); /** @@ -126,7 +128,7 @@ type CapacitorLocalNotificationsModule = typeof import('@capacitor/local-notific * Vite must not pre-resolve this module because some desktop builds do not include it. */ const importCapacitorLocalNotifications = async (): Promise => - import(/* @vite-ignore */ '@capacitor/local-notifications'); + import(/* @vite-ignore */ CAPACITOR_LOCAL_NOTIFICATIONS_MODULE_ID); /** * Bring the Tauri window to the front and focus it