mirror of
https://github.com/SillyTavern/SillyTavern.git
synced 2025-02-23 15:37:50 +01:00
Merge pull request #1714 from LenAnderson/qr-another-startup-fix
Qr another startup fix
This commit is contained in:
commit
874ccd93fc
@ -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);
|
||||
|
Loading…
x
Reference in New Issue
Block a user