1 parent 1ad93e1 commit 9432a20Copy full SHA for 9432a20
1 file changed
src/scripts/theme.ts
@@ -150,7 +150,11 @@ buttons.forEach((btn) => {
150
currentTheme = theme ?? DEFAULT_THEME;
151
localStorage.setItem("theme", theme);
152
// Geocities applies inline styles everywhere, reload to clean up
153
- if (wasGeocities && theme !== "geocities") {
+ // Also reload if switching TO geocities while standalone music player is active
154
+ if (
155
+ (wasGeocities && theme !== "geocities") ||
156
+ (theme === "geocities" && musicPlayerActive)
157
+ ) {
158
location.reload();
159
return;
160
}
0 commit comments