Skip to content

armgit / ente

Public Imported from GitHub
0

πŸ’š End-to-end encrypted cloud for everything.

242 B
Raw Blame
export const httpOrHTTPSURL = (value: string): URL => {
    const url = new URL(value);
    if (url.protocol !== "http:" && url.protocol !== "https:") {
        throw new Error("Unsupported navigation URL protocol");
    }
    return url;
};