mirror of
https://github.com/monkeytypegame/monkeytype.git
synced 2025-02-04 13:01:10 +08:00
clicking discord link no longer beraks site
This commit is contained in:
parent
43fb3924b7
commit
35bacf7b0d
1 changed files with 1 additions and 0 deletions
|
@ -924,6 +924,7 @@ $(document).on("click", "#top .config .mode .button", (e) => {
|
|||
});
|
||||
|
||||
$(document).on("click", "#top #menu .button", (e) => {
|
||||
if($(e.currentTarget).hasClass('discord')) return;
|
||||
href = $(e.currentTarget).attr('href');
|
||||
changePage(href.replace('/', ''));
|
||||
})
|
||||
|
|
Loading…
Reference in a new issue