import './bootstrap'; import htmx from 'htmx.org'; import { Capacitor } from '@capacitor/core'; import { PushNotifications } from '@capacitor/push-notifications'; // HTMX를 전역으로 설정 window.htmx = htmx; // Capacitor 앱에서만 실행 (포그라운드 푸시 알림 소리) if (Capacitor.isNativePlatform()) { PushNotifications.addListener('pushNotificationReceived', (notification) => { const audio = new Audio('/sounds/push_notification.wav'); audio.play().catch(e => console.log('Audio play failed:', e)); }); }