Refactor firstLoadInit to include initCustomSelectedSamplers and addDebugFunctions

99e3c22311fbc660482162c8c0803d459dfdf673

Cohee <18619528+Cohee1207@users.noreply.github.com>

1 files changed, +2 -4Ignore whitespace
public/script.js+2 -4
@@ -1010,6 +1010,8 @@ async function firstLoadInit() {
1010 initBulkEdit();1010 initBulkEdit();
1011 initReasoning();1011 initReasoning();
1012 await initScrapers();1012 await initScrapers();
1013 initCustomSelectedSamplers();
1014 addDebugFunctions();
1013 doDailyExtensionUpdatesCheck();1015 doDailyExtensionUpdatesCheck();
1014 await hideLoader();1016 await hideLoader();
1015 await fixViewport();1017 await fixViewport();
@@ -12274,8 +12276,6 @@ jQuery(async function () {
12274 // Added here to prevent execution before script.js is loaded and get rid of quirky timeouts12276 // Added here to prevent execution before script.js is loaded and get rid of quirky timeouts
12275 await firstLoadInit();12277 await firstLoadInit();
1227612278
12277 addDebugFunctions();
12278
12279 eventSource.on(event_types.CHAT_DELETED, async (name) => {12279 eventSource.on(event_types.CHAT_DELETED, async (name) => {
12280 await deleteItemizedPrompts(name);12280 await deleteItemizedPrompts(name);
12281 });12281 });
@@ -12283,8 +12283,6 @@ jQuery(async function () {
12283 await deleteItemizedPrompts(name);12283 await deleteItemizedPrompts(name);
12284 });12284 });
1228512285
12286 initCustomSelectedSamplers();
12287
12288 window.addEventListener('beforeunload', (e) => {12286 window.addEventListener('beforeunload', (e) => {
12289 if (isChatSaving) {12287 if (isChatSaving) {
12290 e.preventDefault();12288 e.preventDefault();