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();
|
initBulkEdit();
|
||||||
initReasoning();
|
initReasoning();
|
||||||
await initScrapers();
|
await initScrapers();
|
||||||
|
initCustomSelectedSamplers();
|
||||||
|
addDebugFunctions();
|
||||||
doDailyExtensionUpdatesCheck();
|
doDailyExtensionUpdatesCheck();
|
||||||
await hideLoader();
|
await hideLoader();
|
||||||
await fixViewport();
|
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
|
// Added here to prevent execution before script.js is loaded and get rid of quirky timeouts
|
||||||
await firstLoadInit();
|
await firstLoadInit();
|
||||||
|
|
||||||
addDebugFunctions();
|
|
||||||
|
|
||||||
eventSource.on(event_types.CHAT_DELETED, async (name) => {
|
eventSource.on(event_types.CHAT_DELETED, async (name) => {
|
||||||
await deleteItemizedPrompts(name);
|
await deleteItemizedPrompts(name);
|
||||||
});
|
});
|
||||||
@@ -12283,8 +12283,6 @@ jQuery(async function () {
|
|||||||
await deleteItemizedPrompts(name);
|
await deleteItemizedPrompts(name);
|
||||||
});
|
});
|
||||||
|
|
||||||
initCustomSelectedSamplers();
|
|
||||||
|
|
||||||
window.addEventListener('beforeunload', (e) => {
|
window.addEventListener('beforeunload', (e) => {
|
||||||
if (isChatSaving) {
|
if (isChatSaving) {
|
||||||
e.preventDefault();
|
e.preventDefault();
|
||||||
|
Reference in New Issue
Block a user