fixed frontend script execution

This commit is contained in:
azivner
2018-03-04 14:21:11 -05:00
parent d239ef2956
commit 3b9d1df05c
6 changed files with 27 additions and 21 deletions

View File

@@ -116,7 +116,16 @@ async function stopWatch(what, func) {
}
function executeScript(script) {
eval(script);
const completeScript = `
(async function() {
const api = Api();
${script}
})();`;
console.log(completeScript);
eval(completeScript);
}
function formatValueWithWhitespace(val) {