19 lines
627 B
TypeScript
19 lines
627 B
TypeScript
import { createApp } from 'vue'
|
|
import App from './App.vue'
|
|
import router from './router'
|
|
import './styles/main.css'
|
|
import { installKeyboardNavigation } from './composables/useKeyboardNavigation'
|
|
import { installGamepadNavigation } from './composables/useGamepadNavigation'
|
|
|
|
// Install global keyboard navigation handlers immediately
|
|
installKeyboardNavigation()
|
|
installGamepadNavigation()
|
|
|
|
if ('serviceWorker' in navigator && !navigator.serviceWorker.controller) {
|
|
navigator.serviceWorker.addEventListener('controllerchange', () => {
|
|
window.location.reload()
|
|
}, { once: true })
|
|
}
|
|
|
|
createApp(App).use(router).mount('#app')
|