Skip to content

Commit

Permalink
Update router.js
Browse files Browse the repository at this point in the history
  • Loading branch information
MalikWhitten67 committed Jan 17, 2024
1 parent f679a19 commit 4c2af5b
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion router.js
Original file line number Diff line number Diff line change
Expand Up @@ -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('/');
Expand Down Expand Up @@ -297,4 +301,4 @@ class VaderRouter{
window.VaderRouter = VaderRouter;

export default VaderRouter;


0 comments on commit 4c2af5b

Please sign in to comment.