catch error when loading theme config

master
adb-sh 2 years ago
parent 2ae7ad4cef
commit 4a6255185a

@ -3,12 +3,16 @@ import App from "./App.vue";
import "./registerServiceWorker"; import "./registerServiceWorker";
import router from "./router"; import router from "./router";
import { createApi } from "@/Api"; import { createApi } from "@/Api";
import 'bootstrap-icons/font/bootstrap-icons.scss'; import "bootstrap-icons/font/bootstrap-icons.scss";
import './main.scss'; import "./main.scss";
import { ThemeConfig } from 'bootstrap-darkmode'; import { ThemeConfig } from "bootstrap-darkmode";
export const themeConfig = new ThemeConfig(); export const themeConfig = new ThemeConfig();
themeConfig.initTheme(); try {
themeConfig.initTheme();
} catch (e) {
console.error('failed to init theme');
}
createApp(App) createApp(App)
.use(router) .use(router)

Loading…
Cancel
Save