mirror of
https://github.com/codeninjasllc/discourse.git
synced 2024-11-27 09:36:19 -05:00
FIX: Middle clicking on the logo in Firefox
This commit is contained in:
parent
74b3807f60
commit
33b192ba61
1 changed files with 1 additions and 2 deletions
|
@ -37,8 +37,7 @@ export default createWidget('home-logo', {
|
|||
},
|
||||
|
||||
click(e) {
|
||||
// if they want to open in a new tab, let it so
|
||||
if (e.shiftKey || e.metaKey || e.ctrlKey || e.which === 2) { return true; }
|
||||
if (e.shiftKey || e.metaKey || e.ctrlKey || e.button !== 0) { return true; }
|
||||
|
||||
e.preventDefault();
|
||||
|
||||
|
|
Loading…
Reference in a new issue