From 79acb2e78c0a3d27d379270b136f554e42d3fb52 Mon Sep 17 00:00:00 2001 From: Les De Ridder Date: Mon, 18 Jan 2016 16:29:06 +0100 Subject: [PATCH] Update the original tab instead of the active tab --- background.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/background.js b/background.js index 0016bfc..fc836ae 100644 --- a/background.js +++ b/background.js @@ -52,7 +52,7 @@ chrome.pageAction.onClicked.addListener(function(tab) { chrome.tabs.create({url: newUrl}); break; case "replacetab": - chrome.tabs.update({url: newUrl}); + chrome.tabs.update(tab.id, {url: newUrl}); break; }