Skip to content

Commit

Permalink
Removed defaultConfig_ reference in demo.
Browse files Browse the repository at this point in the history
defaultConfig_ is not accessible in compiled mode, and thus the code
using it caused an error.
This simply sets the smallGapLimit placeholder to 0.5, instead of
looking it up from defaultConfig_.

Closes #929

Change-Id: I2e81669858bff2e555e638e282c0643f5ea70ac0
  • Loading branch information
theodab authored and joeyparrish committed Jul 19, 2017
1 parent 4fbcaee commit bf61d89
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions demo/main.js
Original file line number Diff line number Diff line change
Expand Up @@ -317,8 +317,7 @@ shakaDemo.postBrowserCheckParams_ = function(params) {
}

var smallGapLimit = document.getElementById('smallGapLimit');
smallGapLimit.placeholder =
shakaDemo.player_.defaultConfig_().streaming.smallGapLimit;
smallGapLimit.placeholder = 0.5; // The default smallGapLimit.
if ('smallGapLimit' in params) {
smallGapLimit.value = params['smallGapLimit'];
// Call onGapInput_ manually, because setting the value
Expand Down

0 comments on commit bf61d89

Please sign in to comment.