Skip to content

Commit 647a63b

Browse files
committed
Fix animation frame on BEAM
1 parent 1822a58 commit 647a63b

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

src/grille_pain/internals/global.gleam

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
import grille_pain/internals/unsafe
2+
13
pub type AnimationFrame
24

35
@external(javascript, "./global.ffi.mjs", "setTimeout")
@@ -11,4 +13,6 @@ pub fn now() -> Int {
1113
}
1214

1315
@external(javascript, "./global.ffi.mjs", "requestAnimationFrame")
14-
pub fn request_animation_frame(next: fn() -> Nil) -> AnimationFrame
16+
pub fn request_animation_frame(_next: fn() -> Nil) -> AnimationFrame {
17+
unsafe.coerce(0)
18+
}

0 commit comments

Comments
 (0)