Code & Deploy
siGit Code
Git Hosting
Toggle menu
siGit Code
Git Hosting
Sign in
Sign in
@devries-cameron20
/
t3code-1
Fork
0
The best way to control Claude Code, Codex and more from any computer or phone
t3code-1
/
apps
/
web
/
src
/
browser
/
webUrl.ts
Code
Commits
Issues
Pulls
Cloud Agent
CICD
main
main
ts
8 lines
190 Bytes
Copy permalink
Copy
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
}