Move extensions init to function
| @@ -158,7 +158,7 @@ import { | ||
| 158 | 158 | } from './scripts/utils.js'; |
| 159 | 159 | import { debounce_timeout } from './scripts/constants.js'; |
| 160 | 160 | |
| 161 | 161 | import { ModuleWorkerWrapper, doDailyExtensionUpdatesCheck, extension_settings, getContext, initExtensions, loadExtensionSettings, renderExtensionTemplate, renderExtensionTemplateAsync, runGenerationInterceptors, saveMetadataDebounced, writeExtensionField } from './scripts/extensions.js'; |
| 162 | 162 | import { COMMENT_NAME_DEFAULT, executeSlashCommands, executeSlashCommandsOnChatInput, executeSlashCommandsWithOptions, getSlashCommandsHelp, initDefaultSlashCommands, isExecutingCommandsFromChatInput, pauseScriptExecution, processChatSlashCommands, registerSlashCommand, stopScriptExecution } from './scripts/slash-commands.js'; |
| 163 | 163 | import { |
| 164 | 164 | tag_map, |
| @@ -956,6 +956,7 @@ async function firstLoadInit() { | ||
| 956 | 956 | initCfg(); |
| 957 | 957 | initLogprobs(); |
| 958 | 958 | initInputMarkdown(); |
| 959 | + initExtensions(); | |
| 959 | 960 | doDailyExtensionUpdatesCheck(); |
| 960 | 961 | await hideLoader(); |
| 961 | 962 | await fixViewport(); |
| @@ -1041,7 +1041,7 @@ export async function openThirdPartyExtensionMenu(suggestUrl = '') { | ||
| 1041 | 1041 | await installExtension(url); |
| 1042 | 1042 | } |
| 1043 | 1043 | |
| 1044 | 1044 | jQuery(export async function initExtensions() { |
| 1045 | 1045 | await addExtensionsButtonAndMenu(); |
| 1046 | 1046 | $('#extensionsMenuButton').css('display', 'flex'); |
| 1047 | 1047 | |
| @@ -1060,4 +1060,4 @@ jQuery(async function () { | ||
| 1060 | 1060 | * @listens #third_party_extension_button#click - The click event of the '#third_party_extension_button' element. |
| 1061 | 1061 | */ |
| 1062 | 1062 | $('#third_party_extension_button').on('click', () => openThirdPartyExtensionMenu()); |
| 1063 | 1063 | }); |