diff --git a/src/pages/index.astro b/src/pages/index.astro index 28697a0..cbe9539 100644 --- a/src/pages/index.astro +++ b/src/pages/index.astro @@ -13,7 +13,7 @@ import Layout from "../layouts/Layout.astro"; try { var urled = new URL(website); // Make sure the URL is http or https - if (urled.protocol !== 'https' && urled.protocol !== 'http') { + if (urled.protocol !== 'https:' && urled.protocol !== 'http:') { Toastify({ text: "Invalid URL protocol.", gravity: "top",