generated from Seekra/repository-template
Fix top-level await in main.js #119
+7
-9
@@ -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 () => {
|
||||||
|
jakob.scheid marked this conversation as resolved
Outdated
|
|||||||
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
I think it is shorter and more readable to use an IIFE.