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});
|
chrome.tabs.create({url: newUrl});
|
||||||
break;
|
break;
|
||||||
case "replacetab":
|
case "replacetab":
|
||||||
chrome.tabs.update({url: newUrl});
|
chrome.tabs.update(tab.id, {url: newUrl});
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue