Fix(ServiceWorker): Mitigate persistent TypeError by disabling auto-registration

- Mitigation: Disabled `serviceWorker.register` in `svelte.config.js` to stop the loop of `TypeError` during script evaluation.
- Debug Tool: Preserved the `fix-sw` cache clearing utility by moving it to `src/routes/testing/fix-sw/+page.svelte` for future investigation.
- Service Worker: Simplified `src/service-worker.js` to a minimal "Hello World" state and removed the problematic `.ts` version.
- Cleanup: Minor formatting adjustment in `ae_events_functions.ts`.
- Docs: Updated `TODO.md` and `GEMINI.md` to reflect the mitigation and planned follow-up.
This commit is contained in:
Scott Idem
2026-01-21 16:49:33 -05:00
parent 09c7d2440a
commit 8fae3aa89a
6 changed files with 87 additions and 74 deletions

View File

@@ -12,7 +12,10 @@ This is a list of tasks to be completed before the next event/show/conference.
- [ ] **Event Badge Search:** Restore specialized business logic.
- [ ] **Exhibit Search:** Restore missing search function and logic.
- [ ] **Global Rule:** Preserve `ft_qry`, `lk_qry`, and `and_qry` blocks as "sacred" business logic. Never put non-searchable fields in the POST body.
2. **Service Worker Reliability:** Monitor for `TypeError` after manifest path fix and evaluation hardening.
2. **Service Worker Reliability (Mitigated):**
- [x] **Disable Auto-Registration:** Temporarily disabled `serviceWorker.register` in `svelte.config.js` to stop `TypeError` loop.
- [x] **Fix Tool:** Moved `fix-sw` utility to `/testing/fix-sw` for future debugging.
- [ ] **Root Cause Investigation:** Re-enable SW registration later and debug why the script evaluation fails (likely caching or build artifact issues).
3. **Aether Native V3:** Technical planning complete. Ready to scaffold the new Electron 33+ shell and implement the V3 "Zero-Config" bridge.
4. **Jitsi Module Updates:** Prepare for upcoming demo. Audit `video_conferences/+page.svelte` for UI/UX improvements and stability.