From 9f3b4b724bb3ad8df2ab24d14f62dc1135803441 Mon Sep 17 00:00:00 2001 From: Andrey Sitnik Date: Sun, 20 Oct 2024 22:05:16 +0000 Subject: [PATCH] Fix size limit --- index.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/index.js b/index.js index fec3317..22c542e 100644 --- a/index.js +++ b/index.js @@ -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')) } }