aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorbptato <nincsnevem662@gmail.com>2024-12-27 19:30:33 +0100
committerbptato <nincsnevem662@gmail.com>2024-12-27 19:30:33 +0100
commitb7043c915a97ff46814b815301b02bbeb023efae (patch)
tree655a5567e8fc846253fc6f98f7adaf668ee7b4b0 /src
parent9f7f3cefa857c7d1b42d4c66d7325c9d880681be (diff)
downloadchawan-b7043c915a97ff46814b815301b02bbeb023efae.tar.gz
dom: expose getPropertyValue
Diffstat (limited to 'src')
-rw-r--r--src/html/dom.nim2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/html/dom.nim b/src/html/dom.nim
index 1a916b5e..2c1d5feb 100644
--- a/src/html/dom.nim
+++ b/src/html/dom.nim
@@ -3298,7 +3298,7 @@ func find(this: CSSStyleDeclaration; s: string): int =
return i
return -1
-proc getPropertyValue(this: CSSStyleDeclaration; s: string): string =
+proc getPropertyValue(this: CSSStyleDeclaration; s: string): string {.jsfunc.} =
if (let i = this.find(s); i != -1):
return $this.decls[i].value
return ""