Check src exists first in hover to play, hopefully fixes #322
This commit is contained in:
parent
99d96ed901
commit
02c7325e4d
|
@ -27,7 +27,7 @@ class StillImage extends React.PureComponent {
|
||||||
|
|
||||||
hoverToPlay() {
|
hoverToPlay() {
|
||||||
const { autoPlayGif, src } = this.props;
|
const { autoPlayGif, src } = this.props;
|
||||||
return !autoPlayGif && (src.endsWith('.gif') || src.startsWith('blob:'));
|
return src && !autoPlayGif && (src.endsWith('.gif') || src.startsWith('blob:'));
|
||||||
}
|
}
|
||||||
|
|
||||||
setCanvasRef = c => {
|
setCanvasRef = c => {
|
||||||
|
|
Loading…
Reference in New Issue