Remove hardcoded anchor URL fallback

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
This commit is contained in:
Fredrik Johansson
2026-06-23 08:52:21 +02:00
parent de8d3ff70d
commit bbd78ac4de
2 changed files with 3 additions and 3 deletions

View File

@@ -32,8 +32,8 @@ function parseInviteParams(): { network: string; netHash: string; anchor: string
}
const DEFAULT_ANCHOR = (() => {
const cfg = (window as unknown as Record<string, unknown>)['WASTE_CONFIG'] as Record<string, string> | undefined
return cfg?.['signalURL'] ?? localStorage.getItem('waste_anchor_url') ?? 'wss://waste.dev.xplwd.com/ws'
const cfg = (window as unknown as { WASTE_CONFIG?: { signalURL?: string } })['WASTE_CONFIG']
return cfg?.signalURL ?? localStorage.getItem('waste_anchor_url') ?? ''
})()
const isLocal = window.location.hostname === 'localhost' || window.location.hostname === '127.0.0.1'