Parcourir la source

Merge branch 'master' of yyppaag/video_player into master

AdamFu il y a 5 ans
Parent
révision
928f4b05fe
1 fichiers modifiés avec 1 ajouts et 1 suppressions
  1. 1
    1
      src/video/video.js

+ 1
- 1
src/video/video.js Voir le fichier

@@ -44,7 +44,7 @@ export default (
44 44
                 PROPERTIES.reduce((p, c) => {
45 45
                     p[c] = this.videoEl && this.videoEl[c];
46 46
                     if (c == 'playbackrates' && this.videoEl) {
47
-                        if (this.videoEl.dataset) {
47
+                        if (this.videoEl.dataset && this.videoEl.dataset[c]) {
48 48
                             p[c] = JSON.parse(this.videoEl.dataset[c]);
49 49
                         } else {
50 50
                             p[c] = JSON.parse(this.videoEl.getAttribute("data-" + c));