Update the original tab instead of the active tab
This commit is contained in:
parent
997e826002
commit
79acb2e78c
|
@ -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;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue