fix console methods in terminal

pull/2704/head
Aniket-Engg 2 years ago committed by Aniket
parent 7936eca397
commit c8b3ce3489
  1. 2
      libs/remix-ui/terminal/src/lib/utils/wrapScript.ts

@ -1,5 +1,5 @@
export const wrapScript = (script) => {
const isKnownScript = ['remix.', 'git'].some(prefix => script.trim().startsWith(prefix))
const isKnownScript = ['remix.', 'console.', 'git'].some(prefix => script.trim().startsWith(prefix))
if (isKnownScript) return script
return `
try {

Loading…
Cancel
Save