Refactor firstLoadInit to include initCustomSelectedSamplers and addDebugFunctions

99e3c22311fbc660482162c8c0803d459dfdf673

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

1 files changed, +2 -4Showing whitespace changes
public/script.js+2 -4
@@ -1010,6 +1010,8 @@ async function firstLoadInit() {
10101010 initBulkEdit();
10111011 initReasoning();
10121012 await initScrapers();
1013+ initCustomSelectedSamplers();
1014+ addDebugFunctions();
10131015 doDailyExtensionUpdatesCheck();
10141016 await hideLoader();
10151017 await fixViewport();
@@ -12274,8 +12276,6 @@ jQuery(async function () {
1227412276 // Added here to prevent execution before script.js is loaded and get rid of quirky timeouts
1227512277 await firstLoadInit();
1227612278
12277- addDebugFunctions();
12278-
1227912279 eventSource.on(event_types.CHAT_DELETED, async (name) => {
1228012280 await deleteItemizedPrompts(name);
1228112281 });
@@ -12283,8 +12283,6 @@ jQuery(async function () {
1228312283 await deleteItemizedPrompts(name);
1228412284 });
1228512285
12286- initCustomSelectedSamplers();
12287-
1228812286 window.addEventListener('beforeunload', (e) => {
1228912287 if (isChatSaving) {
1229012288 e.preventDefault();