style: switched stylesheet load order
should point to the correct file in prod build
mellbacon committed
Jun 27, 2023 at 14:25 UTC
7b62f870c8d54989c36576b860099797abec48c2
2 files changed
+2
-2
src/config/themehandler.ts
+1
-1
@@ -10,7 +10,7 @@ export function getThemes() {
10
return themelist;
11
}
12
13
-const stylesheet = document.styleSheets[1].cssRules[0] as CSSStyleRule;
13
+const stylesheet = document.styleSheets[0].cssRules[0] as CSSStyleRule;
14
export async function loadTheme(name: string) {
15
let json = await import(`../config/themes/${name.toLowerCase()}-theme.json`);
16
const theme = Object.entries(json.theme);
src/main.ts
+1
-1
@@ -1,5 +1,5 @@
1
-import "./global.css";
1
import "./theme.scss";
2
+import "./global.css";
3
import App from './App.svelte';
4
5
const app = new App({