mirror of
https://github.com/fofolee/uTools-quickcommand.git
synced 2025-10-09 15:03:21 +08:00
添加console.clear
This commit is contained in:
@@ -179,6 +179,9 @@ window.runCodeInSandbox = (code, callback, addVars = {}) => {
|
||||
error: (...stderr) => {
|
||||
callback(null, stderr);
|
||||
},
|
||||
clear: () => {
|
||||
callback({ __clearQuickcommandRunResult: true }, null);
|
||||
},
|
||||
};
|
||||
let sandboxWithAD = Object.assign(addVars, sandbox);
|
||||
sandboxWithAD.quickcommand = window.lodashM.cloneDeep(quickcommand);
|
||||
|
Reference in New Issue
Block a user