Commit 76035f43 authored by yann300's avatar yann300

wrap only if complex script

parent 293379cc
......@@ -481,6 +481,7 @@ class Terminal extends Plugin {
return self._view.el
function wrapScript (script) {
if (script.startsWith('remix.')) return script
return `
try {
const ret = ${script};
......@@ -490,7 +491,7 @@ class Terminal extends Plugin {
console.log(ret)
}
} catch (e) {
console.log(error)
console.log(e.message)
}
`
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment