Update the original tab instead of the active tab

This commit is contained in:
Les De Ridder 2016-01-18 16:29:06 +01:00
parent 997e826002
commit 79acb2e78c
1 changed files with 1 additions and 1 deletions

View File

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