openpencil/src/main.ts
Danila Poyarkov 7a334268d0 Fix all type-aware lint warnings
Add void prefix to 23 fire-and-forget promises across 10 files.
Fix no-base-to-string in bridge.ts by using Buffer.from().toString().
Promote no-floating-promises from warn to error.
2026-03-08 23:04:44 +03:00

20 lines
463 B
TypeScript

import { createHead } from '@unhead/vue/client'
import { createApp } from 'vue'
import './app.css'
import { IS_TAURI } from '@/constants'
import { preloadFonts } from '@/engine/fonts'
import App from './App.vue'
import router from './router'
preloadFonts()
const head = createHead()
createApp(App).use(router).use(head).mount('#app')
if (!IS_TAURI) {
void import('virtual:pwa-register').then(({ registerSW }) => {
registerSW({ immediate: true })
})
}