diff --git a/components/ui/js-editor.vue b/components/ui/js-editor.vue index 4bf201939..f0d488e4e 100644 --- a/components/ui/js-editor.vue +++ b/components/ui/js-editor.vue @@ -112,18 +112,11 @@ export default { provideLinting: debounce(function (code) { try { const res = esprima.parseScript(code, { tolerant: true }) - console.log(res) if (res.errors && res.errors.length > 0) { this.editor.session.setAnnotations( res.errors.map((err) => { const pos = this.editor.session.getDocument().indexToPosition(err.index, 0) - console.log({ - row: pos.row, - column: pos.column, - text: err.description, - type: "error", - }) return { row: pos.row, column: pos.column, diff --git a/pages/index.vue b/pages/index.vue index 971f20855..b1763e188 100644 --- a/pages/index.vue +++ b/pages/index.vue @@ -821,9 +821,8 @@ - import("~/components/collections"), saveRequestAs: () => import("~/components/collections/saveRequestAs"), Editor: AceEditor, + JSEditor: JSEditor, environments: () => import("~/components/environments"), inputform: () => import("~/components/firebase/inputform"), notes: () => import("~/components/firebase/feeds"),