diff --git a/emscripten/webplayer.js b/emscripten/webplayer.js index 062968c97d..ed4bbcdc5d 100644 --- a/emscripten/webplayer.js +++ b/emscripten/webplayer.js @@ -142,8 +142,11 @@ function stat(path) function startRetroArch() { document.getElementById('canvas_div').style.display = 'block'; - document.getElementById('vsync').disabled = true; - document.getElementById('vsync-label').style.color = 'gray'; + // Disable the VSync option. + jQuery('#vsync') + .attr('disabled', true) + .parents('.form-check') + .addClass('disabled'); document.getElementById('latency').disabled = true; document.getElementById('latency-label').style.color = 'gray'; @@ -244,4 +247,4 @@ var Module = { this.totalDependencies = Math.max(this.totalDependencies, left); } -}; \ No newline at end of file +};