Skip to content

Commit d04381a

Browse files
author
Todd Gardner
committed
fix
1 parent 2da0bc9 commit d04381a

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

src/layouts/Layout.astro

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -83,8 +83,8 @@ const {
8383
const roleLinks = Array.from(document.querySelectorAll("[role=link][data-href]"));
8484
for(const rl of roleLinks) {
8585
rl.addEventListener("click", (evt) => {
86-
if (["A", "BUTTON"].indexOf(evt.target?.tagName) >= 0) { return; }
87-
window.location = rl.getAttribute("data-href");
86+
if (["A", "BUTTON"].indexOf((evt.target as HTMLElement)?.tagName) >= 0) { return; }
87+
(window.location as any) = rl.getAttribute("data-href");
8888
});
8989
}
9090
})();

0 commit comments

Comments
 (0)