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:
@ -1,4 +1,4 @@
|
||||
import { callPopup, saveSettings, saveSettingsDebounced } from "../script.js";
|
||||
import { callPopup, eventSource, event_types, saveSettings, saveSettingsDebounced } from "../script.js";
|
||||
import { isSubsetOf } from "./utils.js";
|
||||
export {
|
||||
getContext,
|
||||
@ -162,6 +162,7 @@ async function connectToApi(baseUrl) {
|
||||
const data = await getExtensionsResult.json();
|
||||
modules = data.modules;
|
||||
await activateExtensions();
|
||||
eventSource.emit(event_types.EXTRAS_CONNECTED, modules);
|
||||
}
|
||||
|
||||
updateStatus(getExtensionsResult.ok);
|
||||
|
Reference in New Issue
Block a user