@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, 04:45 UTC

main
ts 8 lines 190 Bytes
Raw
1 export function isWebUrl(url: string): boolean {
2 try {
3 const { protocol } = new URL(url);
4 return protocol === "http:" || protocol === "https:";
5 } catch {
6 return false;
7 }
8 }