Skip to content

Commit

Permalink
fix: options.id is now applied correctly to the player dom element (#…
Browse files Browse the repository at this point in the history
…5090)

Fixes #5088
  • Loading branch information
axten authored and gkatsev committed Apr 20, 2018
1 parent 5dec1a0 commit dd45dc0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/js/player.js
Expand Up @@ -264,7 +264,7 @@ class Player extends Component {
*/
constructor(tag, options, ready) {
// Make sure tag ID exists
tag.id = tag.id || `vjs_video_${Guid.newGUID()}`;
tag.id = tag.id || options.id || `vjs_video_${Guid.newGUID()}`;

// Set Options
// The options argument overrides options set in the video tag
Expand Down

0 comments on commit dd45dc0

Please sign in to comment.