From 33b192ba61ab2932467512a1ea262d6faaae6900 Mon Sep 17 00:00:00 2001 From: Robin Ward Date: Tue, 26 Apr 2016 13:16:51 -0400 Subject: [PATCH] FIX: Middle clicking on the logo in Firefox --- app/assets/javascripts/discourse/widgets/home-logo.js.es6 | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/app/assets/javascripts/discourse/widgets/home-logo.js.es6 b/app/assets/javascripts/discourse/widgets/home-logo.js.es6 index cfdc2ea3f..408b7da13 100644 --- a/app/assets/javascripts/discourse/widgets/home-logo.js.es6 +++ b/app/assets/javascripts/discourse/widgets/home-logo.js.es6 @@ -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();