mirror of
https://github.com/fofolee/uTools-quickcommand.git
synced 2025-06-09 06:54:11 +08:00
兼容老版本
This commit is contained in:
parent
bb247ee8c8
commit
1edd928927
@ -474,7 +474,13 @@ let getSandboxFuns = () => {
|
|||||||
electron: electron,
|
electron: electron,
|
||||||
axios: axios,
|
axios: axios,
|
||||||
Audio: Audio,
|
Audio: Audio,
|
||||||
fetch: fetch
|
fetch: fetch,
|
||||||
|
// 兼容老版本
|
||||||
|
fs: fs,
|
||||||
|
path: path,
|
||||||
|
os: os,
|
||||||
|
child_process: child_process,
|
||||||
|
util: util,
|
||||||
}
|
}
|
||||||
shortCodes.forEach(f => {
|
shortCodes.forEach(f => {
|
||||||
sandbox[f.name] = f
|
sandbox[f.name] = f
|
||||||
|
Loading…
x
Reference in New Issue
Block a user