Refactor firstLoadInit to include initCustomSelectedSamplers and addDebugFunctions

This commit is contained in:
Cohee
2025-05-11 12:28:33 +03:00
parent 09f2b2f731
commit 99e3c22311

View File

@@ -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();