mirror of
https://github.com/zhw2590582/ArtPlayer.git
synced 2026-10-13 07:46:17 -08:00
bugfix
This commit is contained in:
1 parent
d9f23c40c6
commit
d9cad3ef85
7 files changed
+17
-13
No files matched your search
@@ -9,11 +9,15 @@ module.exports = (opts = {}) => ({
|
||||
}
|
||||
|
||||
if (opts.from && opts.to) {
|
||||
cpy(opts.from, opts.to).then(() => {
|
||||
logger.success(`${opts.from} successfully copied to ${opts.to}`);
|
||||
}).catch(() => {
|
||||
logger.fatal('File copy failed!');
|
||||
});
|
||||
setTimeout(() => {
|
||||
cpy(opts.from, opts.to)
|
||||
.then(() => {
|
||||
logger.success(`${opts.from} successfully copied to ${opts.to}`);
|
||||
})
|
||||
.catch(() => {
|
||||
logger.fatal('File copy failed!');
|
||||
});
|
||||
}, 200);
|
||||
}
|
||||
},
|
||||
});
|
||||
Reference in new issue
Block a user