summaryrefslogtreecommitdiff
path: root/src/index.ts
diff options
context:
space:
mode:
authorAkshay Nair <phenax5@gmail.com>2023-08-25 09:30:56 +0530
committerAkshay Nair <phenax5@gmail.com>2023-08-25 09:30:56 +0530
commite5844314314709dfd2806019aa5d522189129497 (patch)
tree87e321a235b0b2ab11cbba1b7e6e485d5f042d42 /src/index.ts
parentda25e0da579da33dffddd16b9a564f358205c43b (diff)
downloadcss-everything-e5844314314709dfd2806019aa5d522189129497.tar.gz
css-everything-e5844314314709dfd2806019aa5d522189129497.zip
refactor: adds Value type to represent generic js values
Diffstat (limited to '')
-rw-r--r--src/index.ts3
1 files changed, 1 insertions, 2 deletions
diff --git a/src/index.ts b/src/index.ts
index e7e42cb..97bd000 100644
--- a/src/index.ts
+++ b/src/index.ts
@@ -187,14 +187,13 @@ const getEvalActions = (
for (const [key, evalVal] of Object.entries(properties)) {
const value = evalValueToString(evalVal)
- console.log(key, evalVal, value)
value && node.style.setProperty(key, value)
}
$element.appendChild(node)
const result = await evalExprInScope(exprs, getEvalActions(node, ctx))
- // node.parentNode?.removeChild(node)
+ node.parentNode?.removeChild(node)
return result
},