combine comments

This commit is contained in:
tophf 2021-08-13 08:28:34 +03:00 committed by GitHub
parent 58aa2e5ee4
commit 062cf8f642
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -11,11 +11,10 @@ const iconMan = (() => {
const staleBadges = new Set();
const imageDataCache = new Map();
const badgeOvr = {color: '', text: ''};
// Fenix currently doesn't seems to correctly use custom ImageData
// https://github.com/openstyles/stylus/issues/1287 Fenix can't use custom ImageData
const FIREFOX_ANDROID = FIREFOX && navigator.userAgent.includes('Android');
// https://github.com/openstyles/stylus/issues/335
// https://github.com/openstyles/stylus/issues/1287
let hasCanvas = FIREFOX_ANDROID ? false : loadImage(`/images/icon/${ICON_SIZES[0]}.png`)
.then(({data}) => (hasCanvas = data.some(b => b !== 255)));