From e49c66f250b59415df95bfb5833ebdc7667cb18e Mon Sep 17 00:00:00 2001 From: George Haidos Date: Sun, 24 Mar 2024 12:35:36 +0200 Subject: [PATCH] Readability fixes --- src/scripts/browserDeviceProfile.js | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/src/scripts/browserDeviceProfile.js b/src/scripts/browserDeviceProfile.js index f28b4bfb84..288d55c04f 100644 --- a/src/scripts/browserDeviceProfile.js +++ b/src/scripts/browserDeviceProfile.js @@ -216,10 +216,14 @@ function supportedDolbyVisionProfilesHevc(videoTestElement) { if (videoTestElement.canPlayType) { if (videoTestElement .canPlayType('video/mp4; codecs="dvh1.05.09"') - .replace(/no/, '')) supportedProfiles.push(5); + .replace(/no/, '')) { + supportedProfiles.push(5); + } if (videoTestElement .canPlayType('video/mp4; codecs="dvh1.08.09"') - .replace(/no/, '')) supportedProfiles.push(8); + .replace(/no/, '')) { + supportedProfiles.push(8); + } } return supportedProfiles; }