Require refetching the theme whenever a new version releases #43

Merged
twig merged 4 commits from force-css-regrab into main 2025-07-18 05:32:12 +00:00
Showing only changes of commit 73606b6bc3 - Show all commits

View file

@ -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 {