refactor content store data fetching with promises
This commit is contained in:
@@ -22,7 +22,7 @@ export function handleClickableElements(clickableElements, store, router, baseUr
|
||||
let href = link.href || link.dataset.href;
|
||||
if (href.startsWith(baseUrl)) href = href.replace(baseUrl, '');
|
||||
|
||||
link.onclick = async function (e) {
|
||||
link.onclick = async function (e) {
|
||||
if (href !== window.location.pathname) {
|
||||
router.push(href);
|
||||
pageChange(href, store, siteName, mapStore, baseUrl);
|
||||
|
Reference in New Issue
Block a user