Parcourir la source

danmaku url bug

DIYgod il y a 9 ans
Parent
commit
de22a18af8
3 fichiers modifiés avec 2 ajouts et 2 suppressions
  1. 0 0
      dist/DPlayer.min.js
  2. 0 0
      dist/DPlayer.min.js.map
  3. 2 2
      src/DPlayer.js

Fichier diff supprimé car celui-ci est trop grand
+ 0 - 0
dist/DPlayer.min.js


Fichier diff supprimé car celui-ci est trop grand
+ 0 - 0
dist/DPlayer.min.js.map


+ 2 - 2
src/DPlayer.js

@@ -685,7 +685,7 @@
                     }
                 }
             };
-            xhr.open('get', this.option.danmaku.add, true);
+            xhr.open('get', this.option.danmaku.get, true);
             xhr.send(null);
         }
         else {
@@ -791,7 +791,7 @@
                     }
                 }
             };
-            xhr.open('post', this.option.danmaku.get, true);
+            xhr.open('post', this.option.danmaku.add, true);
             xhr.send(JSON.stringify(danmakuData));
 
             commentInput.value = '';

Certains fichiers n'ont pas été affichés car il y a eu trop de fichiers modifiés dans ce diff