mirror of
https://github.com/vector-im/element-web.git
synced 2025-08-21 22:41:07 +02:00
Add try-catch around blurhash loading (#8830)
This commit is contained in:
parent
57dff8131c
commit
f10d35cb18
@ -136,7 +136,11 @@ export default class MVideoBody extends React.PureComponent<IBodyProps, IState>
|
|||||||
this.forceUpdate(); // we don't really have a reliable thing to update, so just update the whole thing
|
this.forceUpdate(); // we don't really have a reliable thing to update, so just update the whole thing
|
||||||
});
|
});
|
||||||
|
|
||||||
this.loadBlurhash();
|
try {
|
||||||
|
this.loadBlurhash();
|
||||||
|
} catch (e) {
|
||||||
|
logger.error("Failed to load blurhash", e);
|
||||||
|
}
|
||||||
|
|
||||||
if (this.props.mediaEventHelper.media.isEncrypted && this.state.decryptedUrl === null) {
|
if (this.props.mediaEventHelper.media.isEncrypted && this.state.decryptedUrl === null) {
|
||||||
try {
|
try {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user