chore: remove console.logs

This commit is contained in:
Ayo Ayco 2024-12-27 22:51:45 +01:00
parent 167e7ce1a4
commit 272a59d8d9

View file

@ -227,7 +227,6 @@ function evaluateServerScript(html) {
let [key, rawValue] = match let [key, rawValue] = match
const value = rawValue.replace(/\s/g, '') const value = rawValue.replace(/\s/g, '')
console.log('>>> value', rawValue)
const keys = value.split('.') const keys = value.split('.')
let finalValue = '' let finalValue = ''
let setupCopy = setupMap let setupCopy = setupMap
@ -235,7 +234,6 @@ function evaluateServerScript(html) {
// if not in the server script, it could be a js expression // if not in the server script, it could be a js expression
if (!(keys[0] in setupMap)) { if (!(keys[0] in setupMap)) {
try { try {
console.log('>>> trying to evaluate', rawValue)
finalValue = eval(rawValue) finalValue = eval(rawValue)
} catch (e) { } catch (e) {
console.error('ERR! Failed to evaluate expression', e) console.error('ERR! Failed to evaluate expression', e)
@ -254,9 +252,6 @@ function evaluateServerScript(html) {
regex.lastIndex = -1 regex.lastIndex = -1
} }
console.log('setupMap', setupMap)
console.log('________')
return html return html
} }