mirror of
https://github.com/SillyTavern/SillyTavern.git
synced 2025-06-05 21:59:27 +02:00
Refactor firstLoadInit to include initCustomSelectedSamplers and addDebugFunctions
This commit is contained in:
@@ -1010,6 +1010,8 @@ async function firstLoadInit() {
|
||||
initBulkEdit();
|
||||
initReasoning();
|
||||
await initScrapers();
|
||||
initCustomSelectedSamplers();
|
||||
addDebugFunctions();
|
||||
doDailyExtensionUpdatesCheck();
|
||||
await hideLoader();
|
||||
await fixViewport();
|
||||
@@ -12274,8 +12276,6 @@ jQuery(async function () {
|
||||
// Added here to prevent execution before script.js is loaded and get rid of quirky timeouts
|
||||
await firstLoadInit();
|
||||
|
||||
addDebugFunctions();
|
||||
|
||||
eventSource.on(event_types.CHAT_DELETED, async (name) => {
|
||||
await deleteItemizedPrompts(name);
|
||||
});
|
||||
@@ -12283,8 +12283,6 @@ jQuery(async function () {
|
||||
await deleteItemizedPrompts(name);
|
||||
});
|
||||
|
||||
initCustomSelectedSamplers();
|
||||
|
||||
window.addEventListener('beforeunload', (e) => {
|
||||
if (isChatSaving) {
|
||||
e.preventDefault();
|
||||
|
Reference in New Issue
Block a user