From 826e448af7d9deeb85c04c80fa060e537a910704 Mon Sep 17 00:00:00 2001 From: Scott Idem Date: Wed, 24 Jun 2026 12:46:10 -0400 Subject: [PATCH] fix(fix-sw): show origin and clarify reset only affects this domain MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Displays the actual origin (e.g. https://idaa.org) and adds explicit copy stating this does not affect other sites, browser history, passwords, or settings — so users don't panic thinking their entire browser is being wiped. Co-Authored-By: Claude Sonnet 4.6 --- src/routes/testing/fix-sw/+page.svelte | 11 +++++++---- 1 file changed, 7 insertions(+), 4 deletions(-) diff --git a/src/routes/testing/fix-sw/+page.svelte b/src/routes/testing/fix-sw/+page.svelte index ea0c4b4e..0e2190a2 100644 --- a/src/routes/testing/fix-sw/+page.svelte +++ b/src/routes/testing/fix-sw/+page.svelte @@ -4,6 +4,7 @@ import { onMount } from 'svelte'; let status: string[] = $state([]); let done = $state(false); let has_error = $state(false); +const origin = typeof window !== 'undefined' ? window.location.origin : ''; function log(msg: string) { status = [...status, `${new Date().toLocaleTimeString()} - ${msg}`]; @@ -142,12 +143,14 @@ onMount(() => {

Full Storage Reset

-

- Clears everything for this domain: service workers, SW cache, IndexedDB, - localStorage, sessionStorage — then reloads. +

+ Clears cached data for this site only + ({origin}): + service workers, SW cache, IndexedDB, localStorage, and sessionStorage — then reloads.

- Use this if you are completely stuck on an old version of the app and nothing else has + This does not affect any other sites or your browser history, passwords, + or settings. Use this if you are stuck on an old version of the app and nothing else has worked.