Skip to content

Commit 6e4be84

Browse files
committed
same tab redirect instead of opening in new tab for navigation
1 parent 785f04d commit 6e4be84

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

docs/index.html

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -80,12 +80,12 @@ <h3>Download Stats</h3>
8080
setTheme(localStorage.getItem("dashTheme") || (window.matchMedia && window.matchMedia("(prefers-color-scheme: dark)").matches ? "dark" : "light"));
8181
tgl.addEventListener("click", () => setTheme(document.documentElement.getAttribute("data-theme") === "dark" ? "light" : "dark"));
8282

83-
// Normal click -> public stats page. Cmd/Ctrl-click -> detailed (private) analytics in a new tab.
83+
// Normal click -> public stats page. Cmd/Ctrl-click -> detailed (private) analytics in the same tab.
8484
const card = document.getElementById("statsCard");
8585
card.addEventListener("click", (e) => {
8686
if (e.metaKey || e.ctrlKey) {
8787
e.preventDefault();
88-
window.open(card.dataset.detailed, "_blank", "noopener");
88+
window.location.href = card.dataset.detailed;
8989
}
9090
});
9191
})();

0 commit comments

Comments
 (0)