mirror of
https://github.com/Comfy-Org/ComfyUI_frontend.git
synced 2026-02-22 15:54:09 +00:00
feat: send onWidgets event
This commit is contained in:
committed by
Alexander Brown
parent
f1856b7a17
commit
f1cb6dad20
@@ -73,6 +73,10 @@ export async function importExtensionsByEvent(event: string) {
|
||||
await Promise.all([...callbacks].map((cb) => cb({ event })))
|
||||
}
|
||||
|
||||
export function extentionsImportEventHas(event: string) {
|
||||
return eventMap.has(event)
|
||||
}
|
||||
|
||||
function onceExtImportEvent(event: string, callback: EventCallback) {
|
||||
if (eventMap.has(event)) {
|
||||
eventMap.get(event)!.add(callback)
|
||||
|
||||
Reference in New Issue
Block a user