优化playing

This commit is contained in:
Harvey Zack committed 2018-11-28 14:28:45 +08:00
1 parent 8dfe97b905
commit bdb050f0a7
11 files changed
+43 -36

No files matched your search

+1 -1
View File
@@ -1,7 +1,7 @@
export default function toggleMix(art, player) {
Object.defineProperty(player, 'toggle', {
value: () => {
if (art.isPlaying) {
if (player.playing) {
player.pause();
} else {
player.play();