mirror of
https://github.com/monkeytypegame/monkeytype.git
synced 2024-09-21 07:46:15 +08:00
fixed routing
This commit is contained in:
parent
43abd4b128
commit
d5b865baa1
|
@ -1932,6 +1932,12 @@ $(document).ready(() => {
|
|||
$("#restartTestButton").addClass('hidden');
|
||||
}
|
||||
$("#centerContent").css("opacity", "0").removeClass("hidden").stop(true, true).animate({ opacity: 1 }, 250);
|
||||
if(window.location.pathname === '/account'){
|
||||
history.replaceState('/',null,'/');
|
||||
}else if(window.location.pathname !== '/'){
|
||||
let page = window.location.pathname.replace('/','');
|
||||
changePage(page);
|
||||
}
|
||||
});
|
||||
|
||||
let ctx = $("#wpmChart");
|
||||
|
|
Loading…
Reference in a new issue