Skip to content

Commit

Permalink
Fix size limit
Browse files Browse the repository at this point in the history
  • Loading branch information
ai committed Oct 20, 2024
1 parent 9fe3fb5 commit 9f3b4b7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion index.js
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,7 @@ export function createRouter(routes, opts = {}) {
router.open(link.href)
if (hashChanged) {
location.hash = link.hash
if (!link.hash || link.hash === '#') {
if (link.hash === '' || link.hash === '#') {
window.dispatchEvent(new HashChangeEvent('hashchange'))
}
}
Expand Down

0 comments on commit 9f3b4b7

Please sign in to comment.