We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 2da0bc9 commit d04381aCopy full SHA for d04381a
1 file changed
src/layouts/Layout.astro
@@ -83,8 +83,8 @@ const {
83
const roleLinks = Array.from(document.querySelectorAll("[role=link][data-href]"));
84
for(const rl of roleLinks) {
85
rl.addEventListener("click", (evt) => {
86
- if (["A", "BUTTON"].indexOf(evt.target?.tagName) >= 0) { return; }
87
- window.location = rl.getAttribute("data-href");
+ if (["A", "BUTTON"].indexOf((evt.target as HTMLElement)?.tagName) >= 0) { return; }
+ (window.location as any) = rl.getAttribute("data-href");
88
});
89
}
90
})();
0 commit comments