Move extensions update check to after init
This commit is contained in:
parent
4524f6dbfd
commit
e0be4dde31
|
@ -144,7 +144,7 @@ import {
|
|||
onlyUnique,
|
||||
} from "./scripts/utils.js";
|
||||
|
||||
import { ModuleWorkerWrapper, extension_settings, getContext, loadExtensionSettings, processExtensionHelpers, registerExtensionHelper, renderExtensionTemplate, runGenerationInterceptors, saveMetadataDebounced } from "./scripts/extensions.js";
|
||||
import { ModuleWorkerWrapper, doDailyExtensionUpdatesCheck, extension_settings, getContext, loadExtensionSettings, processExtensionHelpers, registerExtensionHelper, renderExtensionTemplate, runGenerationInterceptors, saveMetadataDebounced } from "./scripts/extensions.js";
|
||||
import { COMMENT_NAME_DEFAULT, executeSlashCommands, getSlashCommandsHelp, registerSlashCommand } from "./scripts/slash-commands.js";
|
||||
import {
|
||||
tag_map,
|
||||
|
@ -728,6 +728,7 @@ async function firstLoadInit() {
|
|||
initRossMods();
|
||||
initStats();
|
||||
initCfg();
|
||||
doDailyExtensionUpdatesCheck();
|
||||
}
|
||||
|
||||
function checkOnlineStatus() {
|
||||
|
|
|
@ -774,10 +774,14 @@ async function loadExtensionSettings(settings, versionChanged) {
|
|||
if (extension_settings.autoConnect && extension_settings.apiUrl) {
|
||||
connectToApi(extension_settings.apiUrl);
|
||||
}
|
||||
}
|
||||
|
||||
if (extension_settings.notifyUpdates) {
|
||||
checkForExtensionUpdates(false);
|
||||
}
|
||||
export function doDailyExtensionUpdatesCheck() {
|
||||
setTimeout(() => {
|
||||
if (extension_settings.notifyUpdates) {
|
||||
checkForExtensionUpdates(false);
|
||||
}
|
||||
}, 1);
|
||||
}
|
||||
|
||||
/**
|
||||
|
|
Loading…
Reference in New Issue