Skip to content

Commit c814c4b

Browse files
committed
fix js backend
1 parent 923006a commit c814c4b

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/fidget/htmlbackend.nim

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -421,7 +421,7 @@ proc drawStart() =
421421
422422
canvas.style.display = "block"
423423
canvas.style.position = "absolute"
424-
canvas.style.zIndex = -1
424+
canvas.style.zIndex = "-1"
425425
canvas.style.left = cstring($scrollBox.x & "px")
426426
canvas.style.top = cstring($scrollBox.y & "px")
427427
canvas.style.width = cstring($width & "px")
@@ -481,7 +481,7 @@ proc refresh*() =
481481
requestedFrame = true
482482
discard dom.window.requestAnimationFrame(requestHardRedraw)
483483
484-
proc startFidget*(draw: proc(), load: proc(), w = 0, h = 0) =
484+
proc startFidget*(draw: proc(), load: proc() = nil, w = 0, h = 0) =
485485
## Start the HTML backend
486486
## NOTE: returns instantly!
487487
drawMain = draw

0 commit comments

Comments
 (0)