mirror of
https://github.com/SillyTavern/SillyTavern.git
synced 2025-06-05 21:59:27 +02:00
Move extensions update check to after init
This commit is contained in:
@ -144,7 +144,7 @@ import {
|
|||||||
onlyUnique,
|
onlyUnique,
|
||||||
} from "./scripts/utils.js";
|
} 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 { COMMENT_NAME_DEFAULT, executeSlashCommands, getSlashCommandsHelp, registerSlashCommand } from "./scripts/slash-commands.js";
|
||||||
import {
|
import {
|
||||||
tag_map,
|
tag_map,
|
||||||
@ -728,6 +728,7 @@ async function firstLoadInit() {
|
|||||||
initRossMods();
|
initRossMods();
|
||||||
initStats();
|
initStats();
|
||||||
initCfg();
|
initCfg();
|
||||||
|
doDailyExtensionUpdatesCheck();
|
||||||
}
|
}
|
||||||
|
|
||||||
function checkOnlineStatus() {
|
function checkOnlineStatus() {
|
||||||
|
@ -774,10 +774,14 @@ async function loadExtensionSettings(settings, versionChanged) {
|
|||||||
if (extension_settings.autoConnect && extension_settings.apiUrl) {
|
if (extension_settings.autoConnect && extension_settings.apiUrl) {
|
||||||
connectToApi(extension_settings.apiUrl);
|
connectToApi(extension_settings.apiUrl);
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
if (extension_settings.notifyUpdates) {
|
export function doDailyExtensionUpdatesCheck() {
|
||||||
checkForExtensionUpdates(false);
|
setTimeout(() => {
|
||||||
}
|
if (extension_settings.notifyUpdates) {
|
||||||
|
checkForExtensionUpdates(false);
|
||||||
|
}
|
||||||
|
}, 1);
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
Reference in New Issue
Block a user