diff options
| author | Jules Laplace <julescarbon@gmail.com> | 2018-06-01 04:48:34 +0200 |
|---|---|---|
| committer | Jules Laplace <julescarbon@gmail.com> | 2018-06-01 04:48:34 +0200 |
| commit | eba0237384836a66a2895e44636739bc47a5943a (patch) | |
| tree | 412549f8a31d9ad4ceb5498a125e6da52e1f3f4c /app/client/socket/socket.system.js | |
| parent | 3824c7b35dfa6ef74d396c54306afbbb6d557fe0 (diff) | |
script output coming back clceanly
Diffstat (limited to 'app/client/socket/socket.system.js')
| -rw-r--r-- | app/client/socket/socket.system.js | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/app/client/socket/socket.system.js b/app/client/socket/socket.system.js index ad9e8ac..5c1e294 100644 --- a/app/client/socket/socket.system.js +++ b/app/client/socket/socket.system.js @@ -58,13 +58,15 @@ export function list_directory(opt) { }) } +export function run_system_command_async(opt) { + return syscall_async('run_system_command', opt) +} export function list_directory_async(opt) { return syscall_async('list_directory', opt).then(res => res.files) } -export function run_system_command_async(opt) { - return syscall_async('run_system_command', opt) +export function run_script_async(opt) { + return syscall_async('run_script', opt) } - export const syscall_async = (tag, payload, ttl=10000) => { return new Promise( (resolve, reject) => { const uuid = uuidv1() |
