Skip to content

Commit

Permalink
fix: use typeof for checking preload option (#4574)
Browse files Browse the repository at this point in the history
  • Loading branch information
gkatsev committed Aug 17, 2017
1 parent 7b251d0 commit fe63992
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/js/tech/html5.js
Expand Up @@ -302,7 +302,7 @@ class Html5 extends Tech {
el.playerId = this.options_.playerId;
}

if (this.options_.preload !== 'undefined') {
if (typeof this.options_.preload !== 'undefined') {
Dom.setAttribute(el, 'preload', this.options_.preload);
}

Expand Down

0 comments on commit fe63992

Please sign in to comment.