fix undefined reading base issue

This commit is contained in:
10G Meow 2023-06-08 13:26:03 +00:00 committed by N Pex
parent 50ae013d24
commit 3f0fd74a16

View file

@ -181,10 +181,14 @@ const vueInstance = new Vue({
audioPlayer, audioPlayer,
render: h => h(App), render: h => h(App),
}); });
if (vueInstance.$config.accentColor) {
vueInstance.$vuetify.theme.themes.light.primary = vueInstance.$config.accentColor; vueInstance.$vuetify.theme.themes.light.primary = vueInstance.$config.accentColor;
}
vueInstance.$audioPlayer.$root = vueInstance; // Make sure a $root is available here vueInstance.$audioPlayer.$root = vueInstance; // Make sure a $root is available here
configLoadedPromise.then((config) => { configLoadedPromise.then((config) => {
if (config.accentColor) {
vueInstance.$vuetify.theme.themes.light.primary = config.accentColor; vueInstance.$vuetify.theme.themes.light.primary = config.accentColor;
}
vueInstance.$mount('#app'); vueInstance.$mount('#app');
}); });