diff options
| -rw-r--r-- | background_page.html | 9 |
1 files changed, 4 insertions, 5 deletions
diff --git a/background_page.html b/background_page.html index 31705964..f5b99ac7 100644 --- a/background_page.html +++ b/background_page.html @@ -332,11 +332,10 @@ console.log("command found for [", keysToCheck, "],", registryEntry); if (typeof(registryEntry) == "string") { - chrome.tabs.getSelected(null, function(tab) { - var port = chrome.tabs.connect(tab.id, { name: "executePageCommand" }); - port.postMessage({ command: registryEntry, count: count, - completionKeys: generateCompletionKeys("") }); - }); + var port = chrome.tabs.connect(tabId, { name: "executePageCommand" }); + port.postMessage({ command: registryEntry, count: count, + completionKeys: generateCompletionKeys("") }); + refreshedCompletionKeys = true; } else { repeatFunction(registryEntry, count, 0); |
