Skip to content

Commit

Permalink
App: Forgot to broadcast these events...
Browse files Browse the repository at this point in the history
  • Loading branch information
e3ndr committed Nov 11, 2024
1 parent cd91da7 commit 4e7ecc1
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions app/widget_environment/src/globals/Widget.ts
Original file line number Diff line number Diff line change
Expand Up @@ -59,9 +59,12 @@ export function init(c: Conn) {

conn.on("init", ({ widget }) => {
widgetData = widget;
events.broadcast("init");
events.broadcast("update");
});
conn.on("update", ({ widget }) => {
widgetData = widget;
events.broadcast("update");
});
conn.on("emission", ({ type, data }) => {
events.broadcast(type, data);
Expand Down

0 comments on commit 4e7ecc1

Please sign in to comment.