webextension ensure tab is from correct window

main
DaAwesomeP 8 years ago
parent 7660c9eb58
commit 71f168d675

@ -24,7 +24,7 @@ document.addEventListener('DOMContentLoaded', function() {
displayApps: function() { displayApps: function() {
var appName, confidence, version; var appName, confidence, version;
browser.tabs.query({ active: true }).then(function(tabs) { browser.tabs.query({ active: true, currentWindow: true }).then(function(tabs) {
function sendGetApps(response) { function sendGetApps(response) {
if ( response.tabCache && response.tabCache.count > 0 ) { if ( response.tabCache && response.tabCache.count > 0 ) {
detectedApps.innerHTML = ''; detectedApps.innerHTML = '';

Loading…
Cancel
Save