File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff 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 } ) ( ) ;
You can’t perform that action at this time.
0 commit comments