mirror of
https://github.com/SillyTavern/SillyTavern.git
synced 2025-06-05 21:59:27 +02:00
Add event emitter subsystem.
This commit is contained in:
@ -5,7 +5,9 @@ import {
|
||||
hideSwipeButtons,
|
||||
showSwipeButtons,
|
||||
callPopup,
|
||||
getRequestHeaders
|
||||
getRequestHeaders,
|
||||
event_types,
|
||||
eventSource
|
||||
} from "../../../script.js";
|
||||
import { getApiUrl, getContext, extension_settings, defaultRequestArgs, modules } from "../../extensions.js";
|
||||
import { stringFormat, initScrollHeight, resetScrollHeight } from "../../utils.js";
|
||||
@ -611,6 +613,9 @@ jQuery(async () => {
|
||||
initScrollHeight($("#sd_negative_prompt"));
|
||||
})
|
||||
|
||||
await loadSettings();
|
||||
eventSource.on(event_types.EXTRAS_CONNECTED, async () => {
|
||||
await Promise.all([loadSamplers(), loadModels()]);
|
||||
});
|
||||
|
||||
await loadSettings();
|
||||
});
|
Reference in New Issue
Block a user