mirror of
https://github.com/SillyTavern/SillyTavern.git
synced 2025-06-05 21:59:27 +02:00
eventSource: Add autofire on emit for APP_READY
This commit is contained in:
@ -512,7 +512,7 @@ export const event_types = {
|
||||
TOOL_CALLS_RENDERED: 'tool_calls_rendered',
|
||||
};
|
||||
|
||||
export const eventSource = new EventEmitter();
|
||||
export const eventSource = new EventEmitter([event_types.APP_READY]);
|
||||
|
||||
eventSource.on(event_types.CHAT_CHANGED, processChatSlashCommands);
|
||||
|
||||
|
Reference in New Issue
Block a user