fix: sleep 弹窗问题

This commit is contained in:
fofolee 2022-01-01 10:08:12 +08:00
parent 00d3463181
commit ec868c58f5

View File

@ -65,7 +65,8 @@ quickcommand = {
sleep: function(ms) {
var start = new Date().getTime()
try {
child_process.execSync(getSleepCodeByShell(ms), { timeout: ms })
// node 16.13.1
child_process.execSync(getSleepCodeByShell(ms), { timeout: ms, windowsHide: true })
} catch (ex) { }
var end = new Date().getTime()
return (end - start)