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 +