Skip to content

Commit 35bacf7

Browse files
committed
clicking discord link no longer beraks site
1 parent 43fb392 commit 35bacf7

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

public/js/script.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -924,6 +924,7 @@ $(document).on("click", "#top .config .mode .button", (e) => {
924924
});
925925

926926
$(document).on("click", "#top #menu .button", (e) => {
927+
if($(e.currentTarget).hasClass('discord')) return;
927928
href = $(e.currentTarget).attr('href');
928929
changePage(href.replace('/', ''));
929930
})

0 commit comments

Comments
 (0)