Skip to content

Commit

Permalink
preventdefault
Browse files Browse the repository at this point in the history
  • Loading branch information
0x24a committed Jun 18, 2023
1 parent 9ac597a commit 0a2f710
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion client/client.js
Original file line number Diff line number Diff line change
Expand Up @@ -586,7 +586,8 @@ function pushMessage(args) {
$('#chatinput').focus();
}
// Thanks to crosst.chat for this part of code!(reply)
nickLinkEl.oncontextmenu = function () {
nickLinkEl.oncontextmenu = function (e) {
e.preventDefault()
// Temporary quick banning
if ($('#chatinput').value.trim() == '#ban') {
// Ban a user though a message
Expand Down

1 comment on commit 0a2f710

@vercel
Copy link

@vercel vercel bot commented on 0a2f710 Jun 18, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please sign in to comment.