building a lot of the modal for the creating room and close to being done

This commit is contained in:
Arjun Patel
2022-01-16 22:25:09 -08:00
parent 2ada680e3e
commit 7a2385ef9e
4 changed files with 174 additions and 11 deletions
+11
View File
@@ -0,0 +1,11 @@
export default function isValidHttpUrl(potentialUrl: string) {
let url;
try {
url = new URL(potentialUrl);
} catch (_) {
return false;
}
return url.protocol === "http:" || url.protocol === "https:";
}