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; }