update ts

This commit is contained in:
Harvey committed 2021-12-01 14:16:43 +08:00
1 parent 7dfe78a95d
commit 69563e818b
10 files changed
+353 -120

No files matched your search

@@ -43,9 +43,10 @@ export default function screenshotMix(art, player) {
def(player, 'screenshot', {
value: () => {
player.getDataURL().then((dataUri) => {
return player.getDataURL().then((dataUri) => {
download(dataUri, `${option.title || 'artplayer'}_${secondToTime($video.currentTime)}.png`);
art.emit('screenshot', dataUri);
return dataUri;
});
},
});