Merge pull request #1478 from DaAwesomeP/master

WebExtension reference current window
main
Elbert Alias 8 years ago committed by GitHub
commit 16a3766694

@ -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