mirror of
https://github.com/fofolee/uTools-quickcommand.git
synced 2025-12-20 02:47:30 +08:00
添加setTimeout和clearTimeout支持
This commit is contained in:
@@ -137,6 +137,9 @@ let getSandboxFuns = () => {
|
||||
os,
|
||||
child_process,
|
||||
quickcomposer,
|
||||
// timeout
|
||||
setTimeout: quickcommand.setTimeout,
|
||||
clearTimeout: quickcommand.clearTimeout,
|
||||
};
|
||||
Object.keys(shortCodes).forEach((f) => {
|
||||
sandbox[f] = shortCodes[f];
|
||||
|
||||
Reference in New Issue
Block a user