压缩字符

This commit is contained in:
Harvey committed 2019-11-27 15:46:55 +08:00
1 parent 2df60a78ff
commit 5f40463713
40 files changed
+385 -481

No files matched your search

+3 -3
View File
@@ -2,10 +2,10 @@ import { def } from '../utils';
export default function playMix(art, player) {
const {
template: { $video },
i18n,
notice,
option: { mutex },
template: { $video },
} = art;
def(player, 'play', {
@@ -14,7 +14,7 @@ export default function playMix(art, player) {
const promise = $video.play();
if (promise !== undefined) {
promise.then().catch(err => {
notice.show(err, true, 3000);
notice.show = err;
throw err;
});
}
@@ -27,7 +27,7 @@ export default function playMix(art, player) {
});
}
notice.show(i18n.get('Play'));
notice.show = i18n.get('Play');
art.emit('play');
} else {
player.pause = true;