Merge pull request #1714 from LenAnderson/qr-another-startup-fix

Qr another startup fix
This commit is contained in:
Cohee 2024-01-18 23:31:19 +02:00 committed by GitHub
commit 874ccd93fc
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 4 additions and 1 deletions

View File

@ -198,6 +198,9 @@ const init = async () => {
slash.init();
autoExec = new AutoExecuteHandler(settings);
eventSource.on(event_types.APP_READY, async()=>await finalizeInit());
};
const finalizeInit = async () => {
log('executing startup');
await autoExec.handleStartup();
log('/executing startup');
@ -211,7 +214,7 @@ const init = async () => {
isReady = true;
log('READY');
};
init();
await init();
const onChatChanged = async (chatIdx) => {
log('CHAT_CHANGED', chatIdx);