fix undefined reading base issue
This commit is contained in:
parent
50ae013d24
commit
3f0fd74a16
1 changed files with 7 additions and 3 deletions
10
src/main.js
10
src/main.js
|
|
@ -32,7 +32,7 @@ const configLoadedPromise = new Promise((resolve, ignoredreject) => {
|
||||||
// eslint-disable-next-line
|
// eslint-disable-next-line
|
||||||
Vue.use(config, globalThis.window.location.origin, (config) => {
|
Vue.use(config, globalThis.window.location.origin, (config) => {
|
||||||
resolve(config);
|
resolve(config);
|
||||||
}); // Use this before cleaninsights below, it depends on config!
|
}); // Use this before cleaninsights below, it depends on config!
|
||||||
});
|
});
|
||||||
Vue.use(analytics);
|
Vue.use(analytics);
|
||||||
Vue.use(VueClipboard);
|
Vue.use(VueClipboard);
|
||||||
|
|
@ -181,10 +181,14 @@ const vueInstance = new Vue({
|
||||||
audioPlayer,
|
audioPlayer,
|
||||||
render: h => h(App),
|
render: h => h(App),
|
||||||
});
|
});
|
||||||
vueInstance.$vuetify.theme.themes.light.primary = vueInstance.$config.accentColor;
|
if (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) => {
|
||||||
vueInstance.$vuetify.theme.themes.light.primary = config.accentColor;
|
if (config.accentColor) {
|
||||||
|
vueInstance.$vuetify.theme.themes.light.primary = config.accentColor;
|
||||||
|
}
|
||||||
vueInstance.$mount('#app');
|
vueInstance.$mount('#app');
|
||||||
});
|
});
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue