From 31813ba52e22c7f0f559f99f8c8c5624a1e4b404 Mon Sep 17 00:00:00 2001 From: Adam Waldron Date: Mon, 23 Sep 2024 00:16:41 -0700 Subject: [PATCH] fix: syntax --- lib/mp4/webvtt-parser.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/mp4/webvtt-parser.js b/lib/mp4/webvtt-parser.js index 84629bf7..f92c54f9 100644 --- a/lib/mp4/webvtt-parser.js +++ b/lib/mp4/webvtt-parser.js @@ -62,9 +62,9 @@ const WebVttParser = function() { // WebVTT Sample format: // Exactly one VTTEmptyCueBox box // OR one or more VTTCueBox boxes. - var sampleData = mdatBox.slice(mdatOffset, mdatOffset + sample.size); + const sampleData = mdatBox.slice(mdatOffset, mdatOffset + sample.size); // single vtte box. - var vtteBox = findBox(sampleData, ['vtte'])[0]; + const vtteBox = findBox(sampleData, ['vtte'])[0]; // empty box if (vtteBox) {