修复 gif demo 错误

This commit is contained in:
Harvey Zack committed 2019-06-06 13:12:52 +08:00
1 parent 52b6693da2
commit dc8337dc65
5 files changed
+26 -30

No files matched your search

+2 -2
View File
@@ -2,7 +2,7 @@ import gifshot from 'gifshot';
import b64toBlob from 'b64-to-blob';
function artplayerPluginGif(art) {
const { errorHandle, clamp, downloadImage } = art.constructor.utils;
const { errorHandle, clamp, downloadFile } = art.constructor.utils;
const {
i18n,
notice,
@@ -83,7 +83,7 @@ function artplayerPluginGif(art) {
gifWidth: (videoWidth / videoHeight) * 200,
},
image => {
downloadImage(image, `${title || 'unnamed'}.gif`);
downloadFile(image, `${title || 'unnamed'}.gif`);
},
);
}