Merge branch 'hovertoplay-error-hotfix' into 'develop'
Check src exists first in hoverToPlay, hopefully fixes #322 Closes #322 See merge request soapbox-pub/soapbox-fe!169
This commit is contained in:
commit
30ebdf30ff
|
@ -27,7 +27,7 @@ class StillImage extends React.PureComponent {
|
|||
|
||||
hoverToPlay() {
|
||||
const { autoPlayGif, src } = this.props;
|
||||
return !autoPlayGif && (src.endsWith('.gif') || src.startsWith('blob:'));
|
||||
return src && !autoPlayGif && (src.endsWith('.gif') || src.startsWith('blob:'));
|
||||
}
|
||||
|
||||
setCanvasRef = c => {
|
||||
|
|
Loading…
Reference in New Issue