autofill command should only query current window

This commit is contained in:
Kyle Spearrin 2017-10-27 10:34:38 -04:00
parent aacaa947e1
commit e57f3fe5f0
1 changed files with 1 additions and 1 deletions

View File

@ -64,7 +64,7 @@ var bg_isBackground = true,
});
}
else if (command === 'autofill_login') {
chrome.tabs.query({ active: true }, function (tabs) {
chrome.tabs.query({ active: true, windowId: chrome.windows.WINDOW_ID_CURRENT }, function (tabs) {
if (tabs.length) {
ga('send', {
hitType: 'event',