fix: remove bad "caching" behaviour
This commit is contained in:
parent
8a172db3f4
commit
73606b6bc3
1 changed files with 0 additions and 4 deletions
|
@ -5,10 +5,6 @@ export default function loadPreferredTheme() {
|
||||||
const baseURL = runtimeConfig.app.baseURL;
|
const baseURL = runtimeConfig.app.baseURL;
|
||||||
const currentTheme = settingsLoad().selectedThemeId ?? "dark"
|
const currentTheme = settingsLoad().selectedThemeId ?? "dark"
|
||||||
|
|
||||||
if (themeLinkElement && themeLinkElement.getAttribute('href') === `${baseURL}themes/${currentTheme}.css`) {
|
|
||||||
return;
|
|
||||||
}
|
|
||||||
|
|
||||||
if (themeLinkElement) {
|
if (themeLinkElement) {
|
||||||
themeLinkElement.href = `${baseURL}themes/${currentTheme}.css`;
|
themeLinkElement.href = `${baseURL}themes/${currentTheme}.css`;
|
||||||
} else {
|
} else {
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue