We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 6984496 commit 39b957aCopy full SHA for 39b957a
src/store-front/src/main.ts
@@ -13,6 +13,12 @@ app.use(router)
13
14
// Initialize theme before mounting
15
const { initializeTheme } = useTheme()
16
-initializeTheme().then(() => {
17
- app.mount('#app')
18
-})
+initializeTheme()
+ .then(() => {
+ app.mount('#app')
19
+ })
20
+ .catch((error) => {
21
+ console.error('Failed to initialize theme:', error)
22
+ // Optionally, implement fallback behavior here
23
+ app.mount('#app') // Mount the app even if theme initialization fails
24
0 commit comments