mirror of
https://github.com/actualbudget/actual.git
synced 2026-05-07 12:28:57 -05:00
In dev mode browser-preload's updateSW was () => undefined, so applyAppUpdate() — which calls updateSW() and then awaits a deliberately never-resolving promise (waiting for the SW-driven page reload) — hung the renderer instead of refreshing. In prod the page is replaced by the new service worker, so the never-resolving await is fine. The dev path now triggers a plain window.location.reload() so the page reloads and the never-settling await is irrelevant, matching prod's effective behaviour. Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>