修复切换画质bug

This commit is contained in:
Harvey Zack committed 2018-11-22 13:16:00 +08:00
1 parent d4b9fc4d29
commit 88533c1023
8 files changed
+116 -138

No files matched your search

+1 -1
View File
@@ -34,7 +34,7 @@ export default class Quality {
const index = Number(event.target.dataset.index);
const { url, name } = option.quality[index];
if (url && name && this.playIndex !== index) {
player.switch(url, name);
player.switchQuality(url, name);
$qualityName.innerHTML = name;
this.playIndex = index;
}