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; window.done = false;
pyodide.runPythonAsync({!r}) pyodide.runPythonAsync({!r})
.then(function(output) {{ window.output = output; window.error = false; }}, .then(function(output)
function(output) {{ window.output = output; window.error = true; }}) {{ window.output = output; window.error = false; }},
function(output)
{{ window.output = output; window.error = true; }})
.finally(() => window.done = true); .finally(() => window.done = true);
""".format(code) """.format(code)
) )