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