Enable the use of W in Firefox for Android (#1960)

main
Camille Barneaud 8 years ago committed by Elbert Alias
parent 4b9bc8a8e8
commit 1fce3cbc6b

@ -244,10 +244,14 @@ wappalyzer.driver.displayApps = (detected, meta, context) => {
icon = 'converted/' + icon.replace(/\.svg$/, '.png'); icon = 'converted/' + icon.replace(/\.svg$/, '.png');
} }
try {
browser.pageAction.setIcon({ browser.pageAction.setIcon({
tabId: tab.id, tabId: tab.id,
path: '../images/icons/' + icon path: '../images/icons/' + icon
}); });
} catch(e) {
// Firefox for Android does not support setIcon see https://bugzilla.mozilla.org/show_bug.cgi?id=1331746
}
found = true; found = true;
} }