mirror of
https://gitea.toothfairyai.com/ToothFairyAI/tf_code.git
synced 2026-04-26 10:34:47 +00:00
global bus
This commit is contained in:
@@ -35,6 +35,10 @@ export namespace Bus {
|
|||||||
for (const sub of [...wildcard]) {
|
for (const sub of [...wildcard]) {
|
||||||
sub(event)
|
sub(event)
|
||||||
}
|
}
|
||||||
|
GlobalBus.emit("event", {
|
||||||
|
directory: Instance.directory,
|
||||||
|
payload: event,
|
||||||
|
})
|
||||||
},
|
},
|
||||||
)
|
)
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user