Skip to content

Commit

Permalink
Fix oddities with username 'false'
Browse files Browse the repository at this point in the history
*shakes fist at jQuery*
  • Loading branch information
Zarel committed Nov 30, 2017
1 parent 2524a49 commit e61e443
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions js/client-mainmenu.js
Original file line number Diff line number Diff line change
Expand Up @@ -208,6 +208,8 @@
e.preventDefault();
e.stopPropagation();
userid = $(e.currentTarget).closest('.pm-window').data('userid');
// counteract jQuery auto-casting
if (userid !== undefined && userid !== '') userid = '' + userid;
} else {
userid = toId(e);
}
Expand Down

0 comments on commit e61e443

Please sign in to comment.