generated from Seekra/repository-template
fix(main): use async IIFE instead of top-level await
This commit is contained in:
+2
-4
@@ -23,13 +23,11 @@ import router from './router'
|
||||
import './styles/common.css'
|
||||
import './styles/variables/colors.css'
|
||||
|
||||
async function bootstrap() {
|
||||
(async () => {
|
||||
await loadLanguage(getCurrentLanguage())
|
||||
|
||||
createApp(App)
|
||||
.use(router)
|
||||
.use(i18n)
|
||||
.mount('#app')
|
||||
}
|
||||
|
||||
bootstrap()
|
||||
})()
|
||||
Reference in New Issue
Block a user