From 4c2af5b1345871815377b6c8d273142be4fd789f Mon Sep 17 00:00:00 2001 From: Malik Whitten <65188863+MalikWhitten67@users.noreply.github.com> Date: Wed, 17 Jan 2024 11:59:33 -0930 Subject: [PATCH] Update router.js --- router.js | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/router.js b/router.js index 6108c12..bd10a5f 100644 --- a/router.js +++ b/router.js @@ -138,6 +138,10 @@ class VaderRouter{ if (route.path === hash) { return true; } + + if(hash === '' && route.path === '/'){ + return true + } if (route.path.includes('*') || route.path.includes(':')) { const routeParts = route.path.split('/'); @@ -297,4 +301,4 @@ class VaderRouter{ window.VaderRouter = VaderRouter; export default VaderRouter; - \ No newline at end of file +