Image decode error as warning (#2471)
This commit is contained in:
parent
4ff3dfa412
commit
5898f09b34
@ -144,7 +144,7 @@ export const useMediaHelper = ({ src, srcSet: srcSetIntital, topLevel, tab }) =>
|
||||
img.decode().then(() => { // decoding beforehand to prevent wrong image cropping
|
||||
setIsImage(true)
|
||||
}).catch((e) => {
|
||||
console.error('Cannot decode image', e)
|
||||
console.warn('Cannot decode image:', src, e)
|
||||
})
|
||||
}
|
||||
video.src = src
|
||||
|
Loading…
x
Reference in New Issue
Block a user