Readability fixes

This commit is contained in:
George Haidos 2024-03-24 12:35:36 +02:00 committed by GeorgeH005
parent d094d0cbb7
commit e49c66f250

View File

@ -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;
}