mirror of
https://github.com/fofolee/uTools-quickcommand.git
synced 2025-06-08 14:34:13 +08:00
fix: sleep 弹窗问题
This commit is contained in:
parent
00d3463181
commit
ec868c58f5
@ -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)
|
||||
|
Loading…
x
Reference in New Issue
Block a user