mirror of
https://github.com/SableClient/Sable.git
synced 2026-11-20 00:51:17 -08:00
On Tauri 2.x macOS/Linux, window.location.origin returns the string "null" because tauri:// is a non-standard (opaque) URL scheme per the WHATWG URL spec. The embedded Element Call widget parses parentUrl with new URL() — "null" is not a valid absolute URL, so it throws TypeError, the widget silently falls back to standalone mode (no widget API), and calls fail with "Room not found". Construct the origin from protocol + host to get a valid absolute URL (tauri://localhost) instead of the opaque-origin serialization.