兼容老版本

This commit is contained in:
fofolee 2022-04-21 10:32:42 +08:00
parent bb247ee8c8
commit 1edd928927

View File

@ -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