精简eslinet

This commit is contained in:
Harvey Zack committed 2019-08-08 19:09:22 +08:00
1 parent fba16c2432
commit 6fb1b0eb6e
7 files changed
+14 -40

No files matched your search

@@ -1,5 +1,5 @@
export default function localPreview(art) {
const { append, setStyle, setStyles, sleep } = art.constructor.utils;
const { append, setStyle, setStyles, sleep, errorHandle } = art.constructor.utils;
const {
events: { proxy },
option,
@@ -37,7 +37,7 @@ export default function localPreview(art) {
} else {
const tip = `${i18n.get('Playback of this file format is not supported')}: ${file.type}`;
notice.show(tip, true, 3000);
console.warn(tip);
errorHandle(false, tip);
}
}
}