changes for script execution (parameters etc.)

This commit is contained in:
azivner
2018-01-26 23:40:48 -05:00
parent 5981b9bc7b
commit 005480059a
5 changed files with 53 additions and 10 deletions

View File

@@ -29,12 +29,12 @@ const server = (function() {
return await call('DELETE', url);
}
async function exec(script) {
async function exec(script, params = []) {
if (typeof script === "function") {
script = script.toString();
}
return await post('script/exec', { script: script });
return await post('script/exec', { script: script, params: params });
}
let i = 1;