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

main
Camille Barneaud 7 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');
} }
browser.pageAction.setIcon({ try {
tabId: tab.id, browser.pageAction.setIcon({
path: '../images/icons/' + icon tabId: tab.id,
}); 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;
} }