@devries-cameron20 / t3code Mirror · read-only
Fork 0

The best way to control Claude Code, Codex and more from any computer or phone

Mirrored from https://github.com/Camo67/t3code.git

Synced Nov 21, 03:37 UTC

main
ts 8 lines 248 Bytes
Raw
1 // `URL.parse` and `URL.canParse` are missing before Safari 17/18, and client code ships unpolyfilled.
2 export function parseUrl(value: string, base?: string): URL | null {
3 try {
4 return new URL(value, base);
5 } catch {
6 return null;
7 }
8 }