From b4f9f302dee1c1ef3236ed135bdc79a562209b13 Mon Sep 17 00:00:00 2001 From: mgabdev <> Date: Mon, 26 Aug 2019 21:59:57 -0400 Subject: [PATCH] Added check for if no video buffered exists in video feature --- app/javascript/gabsocial/features/video/index.js | 1 + 1 file changed, 1 insertion(+) diff --git a/app/javascript/gabsocial/features/video/index.js b/app/javascript/gabsocial/features/video/index.js index 4ec37342..af5b08fc 100644 --- a/app/javascript/gabsocial/features/video/index.js +++ b/app/javascript/gabsocial/features/video/index.js @@ -344,6 +344,7 @@ class Video extends React.PureComponent { } handleProgress = () => { + if (!this.video.buffered) return; if (this.video.buffered.length > 0) { this.setState({ buffer: this.video.buffered.end(0) / this.video.duration * 100 }); }