aboutsummaryrefslogtreecommitdiffstats
path: root/src/style.css
diff options
context:
space:
mode:
authorAdam Soltys <[email protected]>2026-08-03 08:05:16 -0700
committerAdam Soltys <[email protected]>2026-08-03 08:05:16 -0700
commit59d0991115465106d960d1983fdd1b7c94aef7e6 (patch)
treedef53fccb7235fb6d7c92298b3a60424e5c2e38f /src/style.css
parent86101d5ff381ca9832a4e4c17c47d8350e2d12d0 (diff)
downloadcoinosv3-59d0991115465106d960d1983fdd1b7c94aef7e6.tar.gz
coinosv3-59d0991115465106d960d1983fdd1b7c94aef7e6.zip
Fix the service-worker ReferenceError; stop dialing dead relays
sw.js threw "NWC_WAKE_FALLBACK is not defined" on every load: the template substitution used String.replace with a string pattern, which replaces only the FIRST match — and that was the mention inside the comment above, leaving the real placeholder literal in the output (parsed as a block plus a bare identifier). replaceAll fixes it, the comment no longer spells the token, and {{VERSION}} got the same treatment. Both build profiles now emit a service worker that parses and activates cleanly. The relay noise: a browser logs failed WebSocket connections itself and JS cannot suppress that line, so the fix is to stop making the doomed connection. nostr.js now probes each new relay once, remembers unreachable ones for ten minutes, and filters them out of every subscribe/query/publish (never down to an empty set). Publish rejections that look like connection failures mark the relay sick rather than logging a scary "refused" line. relay.damus.io — down all week — also leaves the profile relay list. Co-Authored-By: Claude Fable 5 <[email protected]> Claude-Session: https://claude.ai/code/session_01Wvj4aoeMZwA7VUGdJP9Swi
Diffstat (limited to 'src/style.css')
0 files changed, 0 insertions, 0 deletions