mirror of
https://github.com/glitch-soc/mastodon.git
synced 2025-03-17 08:50:54 -04:00
[Glitch] Do not try to update an undefined video element
Port 7840c6b75b61e64d89d7fd9f291277fb177e513f to glitch-soc Signed-off-by: Claire <claire.github-309c@sitedethib.com>
This commit is contained in:
parent
372c455218
commit
dee28c3fbf
@ -441,6 +441,10 @@ class Video extends PureComponent {
|
||||
};
|
||||
|
||||
_syncVideoToVolumeState = (volume = null, muted = null) => {
|
||||
if (!this.video) {
|
||||
return;
|
||||
}
|
||||
|
||||
this.video.volume = volume ?? this.state.volume;
|
||||
this.video.muted = muted ?? this.state.muted;
|
||||
};
|
||||
|
Loading…
x
Reference in New Issue
Block a user