Require refetching the theme whenever a new version releases #43
1 changed files with 0 additions and 4 deletions
|
@ -5,10 +5,6 @@ export default function loadPreferredTheme() {
|
|||
const baseURL = runtimeConfig.app.baseURL;
|
||||
const currentTheme = settingsLoad().selectedThemeId ?? "dark"
|
||||
|
||||
if (themeLinkElement && themeLinkElement.getAttribute('href') === `${baseURL}themes/${currentTheme}.css`) {
|
||||
return;
|
||||
}
|
||||
|
||||
if (themeLinkElement) {
|
||||
themeLinkElement.href = `${baseURL}themes/${currentTheme}.css`;
|
||||
} else {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue