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