压缩字符

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

@@ -15,9 +15,9 @@ export default function screenshotMix(art, player) {
canvas.height = $video.videoHeight;
canvas.getContext('2d').drawImage($video, 0, 0);
return canvas.toDataURL('image/png');
} catch (error) {
notice.show(error);
throw error;
} catch (err) {
notice.show = err;
throw err;
}
},
});
@@ -33,9 +33,9 @@ export default function screenshotMix(art, player) {
canvas.toBlob(blob => {
resolve(URL.createObjectURL(blob));
});
} catch (error) {
notice.show(error);
reject(error);
} catch (err) {
notice.show = err;
reject(err);
}
}),
});