FIX: Middle clicking on the logo in Firefox

This commit is contained in:
Robin Ward 2016-04-26 13:16:51 -04:00
parent 74b3807f60
commit 33b192ba61
No known key found for this signature in database
GPG key ID: 0E091E2B4ED1B83D

View file

@ -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();