From f6905e241f3c4a1449c88cd83be5772b2b512b9f Mon Sep 17 00:00:00 2001 From: Dominika Liberda Date: Mon, 31 May 2021 23:11:41 +0000 Subject: [PATCH] * yeah --- webroot/js/player.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/webroot/js/player.js b/webroot/js/player.js index 46cb3e0..32d2e5c 100644 --- a/webroot/js/player.js +++ b/webroot/js/player.js @@ -32,7 +32,7 @@ window.addEventListener('DOMContentLoaded', (event) => { if (videoFormat == null) { videoFormat = formats.find((fmt) => fmt.vcodec !== 'none'); } - const audioFormat = videoFormat.acodec === 'none' ? formats.find((fmt) => fmt.format_id == localStorage.getItem("audioStream")) : null; + let audioFormat = videoFormat.acodec === 'none' ? formats.find((fmt) => fmt.format_id == localStorage.getItem("audioStream")) : null; if (audioFormat == null) { audioFormat = videoFormat.acodec === 'none' ? formats.find((fmt) => fmt.acodec !== 'none') : null; }