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/common.css'
|
||||||
import './styles/variables/colors.css'
|
import './styles/variables/colors.css'
|
||||||
|
|
||||||
async function bootstrap() {
|
(async () => {
|
||||||
await loadLanguage(getCurrentLanguage())
|
await loadLanguage(getCurrentLanguage())
|
||||||
|
|
||||||
createApp(App)
|
createApp(App)
|
||||||
.use(router)
|
.use(router)
|
||||||
.use(i18n)
|
.use(i18n)
|
||||||
.mount('#app')
|
.mount('#app')
|
||||||
}
|
})()
|
||||||
|
|
||||||
bootstrap()
|
|
||||||
Reference in New Issue
Block a user