Skip to content

Commit e44311c

Browse files
authored
Update jsutils.nim
export helpers
1 parent 179e5d2 commit e44311c

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/jsutils.nim

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -6,15 +6,15 @@ proc fetchText*(url: cstring, config: JsonNode): Future[cstring] {.importcpp: "f
66
proc fetchJson*(url: cstring, config: JsonNode): Future[JsObject] {.importcpp: "fetch(#, #).then(r => r.json())".}
77
proc stringify*(c: JsObject): cstring {.importcpp:"JSON.stringify(#)".}
88

9-
proc addFavicon(href: string, kind = "image/png") =
9+
proc addFavicon*(href: string, kind = "image/png") =
1010
var css = document.createElement("link")
1111
css.setAttribute("href", href)
1212
css.setAttribute("rel", "shortcut icon")
1313
css.setAttribute("type", kind)
1414
document.head.appendChild(css)
1515

16-
proc addStylesheet(href: string) =
16+
proc addStylesheet*(href: string) =
1717
var css = document.createElement("link")
1818
css.setAttribute("href", href)
1919
css.setAttribute("rel", "stylesheet")
20-
document.head.appendChild(css)
20+
document.head.appendChild(css)

0 commit comments

Comments
 (0)