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
scroll-to-point-in-thread
Alex Gleason 2020-08-15 21:36:00 +00:00
commit 30ebdf30ff
1 zmienionych plików z 1 dodań i 1 usunięć

Wyświetl plik

@ -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 => {