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

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 }