This commit is contained in:
Michael Droettboom 2018-10-10 14:38:58 -04:00
parent 0809f74622
commit 6aa6c94644
1 changed files with 4 additions and 2 deletions

View File

@ -114,8 +114,10 @@ class SeleniumWrapper:
"""
window.done = false;
pyodide.runPythonAsync({!r})
.then(function(output) {{ window.output = output; window.error = false; }},
function(output) {{ window.output = output; window.error = true; }})
.then(function(output)
{{ window.output = output; window.error = false; }},
function(output)
{{ window.output = output; window.error = true; }})
.finally(() => window.done = true);
""".format(code)
)