Skip to content

Commit

Permalink
fix check for number of audio codecs available
Browse files Browse the repository at this point in the history
git-svn-id: https://xpra.org/svn/Xpra/trunk@18631 3bb7dfac-3a0b-4e04-842a-767bc560f471
  • Loading branch information
totaam committed Feb 28, 2018
1 parent 6658045 commit cbde773
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/html5/connect.html
Original file line number Diff line number Diff line change
Expand Up @@ -501,7 +501,7 @@ <h4 class="panel-title">Advanced options</h4>
};
}
var sound = getboolparam("sound");
$('input#sound').prop("checked", sound && codecs_supported.length>0);
$('input#sound').prop("checked", sound && Object.keys(codecs_supported).length>0);

var video = document.getElementById("video");
function toggle_mediasource_video() {
Expand Down

0 comments on commit cbde773

Please sign in to comment.