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