aboutsummaryrefslogtreecommitdiff
path: root/src/app/root.zig
diff options
context:
space:
mode:
authorNathan Reiner <nathan@nathanreiner.xyz>2026-10-15 11:25:14 +0200
committerNathan Reiner <nathan@nathanreiner.xyz>2026-10-15 11:25:14 +0200
commita1dc55be6e695a1c04e5e9e0f1ce7406a5dd3dff (patch)
tree46e78cce4fcc9ec7f04b3ae69bf53d9a81710dbe /src/app/root.zig
parent0b2af471b6d5dfc4eaf53639102c1b854bbb324b (diff)
add function struct to register js functions dynamically
Diffstat (limited to 'src/app/root.zig')
-rw-r--r--src/app/root.zig1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/app/root.zig b/src/app/root.zig
index d172b23..25865d2 100644
--- a/src/app/root.zig
+++ b/src/app/root.zig
@@ -11,6 +11,7 @@ const components = @import("components/root.zig").components;
pub const app: zilch.App(.{
.name = "Memora",
+ .functions = &zilch.Object.functions,
.globals = &.{
zilch.Object.global(.window),
zilch.Object.global(.Object),