mirror of
https://github.com/nesquena/hermes-webui.git
synced 2026-05-25 11:10:18 +00:00
45fe6294f9
The boot IIFE unconditionally overwrote localStorage with whatever settings.json had on the server. If the appearance autosave POST ever failed (network glitch, transient error) the next page load would revert the user's chosen theme/skin to the server's stale defaults. Fix: reconcile localStorage against the server on boot. When localStorage carries a non-default skin or system theme (the user explicitly chose something), localStorage wins and the fix pushes those values back to the server. When localStorage is at defaults (new browser / first visit), the server still wins. Tested scenarios: - User chose non-default skin, autosave failed → preserved + reconciled - New browser, server has non-default skin → server value applied - Normal use (autosave works) → unchanged behavior