Skip to content

Commit

Permalink
Fixing a bug with removing the poster image
Browse files Browse the repository at this point in the history
Maybe it's related to [this change](videojs/video.js#1062) in newer versions of video js, but setting "tech.poster" to null doesn't work. However, using "removeAttribute" does. Great job, internet.
  • Loading branch information
shaqq committed Mar 10, 2014
1 parent f8fa6b2 commit a255d33
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/videojs.ads.js
Original file line number Diff line number Diff line change
Expand Up @@ -239,7 +239,7 @@ var
removeNativePoster = function(player) {
var tech = player.el().querySelector('.vjs-tech');
if (tech) {
tech.poster = null;
tech.removeAttribute('poster');
}
},

Expand Down

0 comments on commit a255d33

Please sign in to comment.