changeset 6:d5f5d016facd

Open search resuls in background when using middle click
author Guido Berhoerster <guido+cws@berhoerster.name>
date Sun, 10 Oct 2021 19:07:11 +0200
parents 330db83ea497
children 369e61618ff0
files background.js
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/background.js	Thu Oct 31 16:31:38 2019 +0100
+++ b/background.js	Sun Oct 10 19:07:11 2021 +0200
@@ -107,7 +107,7 @@
     let newTab;
     try {
         newTab = await browser.tabs.create({
-            active: true,
+            active: info.button === 1 ? false : true,
             cookieStoreId: tab.cookieStoreId,
             openerTabId: tab.id
         });