mirror of
https://github.com/Equicord/Equicord.git
synced 2025-06-07 13:43:03 -04:00
Fix QuickCSS Loading Later
This commit is contained in:
parent
03e663021e
commit
9e77c33ac4
1 changed files with 6 additions and 6 deletions
|
@ -94,17 +94,17 @@ async function initThemes() {
|
||||||
document.addEventListener("DOMContentLoaded", () => {
|
document.addEventListener("DOMContentLoaded", () => {
|
||||||
initSystemValues();
|
initSystemValues();
|
||||||
|
|
||||||
toggle(Settings.useQuickCss);
|
|
||||||
SettingsStore.addChangeListener("useQuickCss", toggle);
|
|
||||||
|
|
||||||
SettingsStore.addChangeListener("enabledThemeLinks", initThemes);
|
|
||||||
SettingsStore.addChangeListener("enabledThemes", initThemes);
|
|
||||||
|
|
||||||
if (!IS_WEB) {
|
if (!IS_WEB) {
|
||||||
VencordNative.quickCss.addThemeChangeListener(initThemes);
|
VencordNative.quickCss.addThemeChangeListener(initThemes);
|
||||||
}
|
}
|
||||||
|
|
||||||
initThemes();
|
initThemes();
|
||||||
|
|
||||||
|
toggle(Settings.useQuickCss);
|
||||||
|
SettingsStore.addChangeListener("useQuickCss", toggle);
|
||||||
|
|
||||||
|
SettingsStore.addChangeListener("enabledThemeLinks", initThemes);
|
||||||
|
SettingsStore.addChangeListener("enabledThemes", initThemes);
|
||||||
});
|
});
|
||||||
|
|
||||||
export function initQuickCssThemeStore() {
|
export function initQuickCssThemeStore() {
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue