aboutsummaryrefslogtreecommitdiffhomepage
path: root/utils/previewBar.js
diff options
context:
space:
mode:
Diffstat (limited to 'utils/previewBar.js')
-rw-r--r--utils/previewBar.js2
1 files changed, 2 insertions, 0 deletions
diff --git a/utils/previewBar.js b/utils/previewBar.js
index c746c5d4..e5a74b62 100644
--- a/utils/previewBar.js
+++ b/utils/previewBar.js
@@ -59,6 +59,8 @@ class PreviewBar {
duration = Math.floor(duration * 100) / 100;
let width;
for (let i = 0; i < timestamps.length; i++) {
+ if (types[i] == null) continue;
+
width = (timestamps[i][1] - timestamps[i][0]) / duration * 100;
width = Math.floor(width * 100) / 100;