mirror of
https://github.com/ksyasuda/SubMiner.git
synced 2026-03-01 18:22:41 -08:00
fix(startup): skip heavy startup log on lightweight path
This commit is contained in:
@@ -168,6 +168,13 @@ export function isAutoUpdateEnabledRuntime(
|
|||||||
export async function runAppReadyRuntime(deps: AppReadyRuntimeDeps): Promise<void> {
|
export async function runAppReadyRuntime(deps: AppReadyRuntimeDeps): Promise<void> {
|
||||||
const now = deps.now ?? (() => Date.now());
|
const now = deps.now ?? (() => Date.now());
|
||||||
const startupStartedAtMs = now();
|
const startupStartedAtMs = now();
|
||||||
|
if (deps.shouldSkipHeavyStartup?.()) {
|
||||||
|
await deps.loadYomitanExtension();
|
||||||
|
deps.handleInitialArgs();
|
||||||
|
deps.logDebug?.(`App-ready critical path finished in ${now() - startupStartedAtMs}ms.`);
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
deps.logDebug?.('App-ready critical path started.');
|
deps.logDebug?.('App-ready critical path started.');
|
||||||
|
|
||||||
if (deps.shouldSkipHeavyStartup?.()) {
|
if (deps.shouldSkipHeavyStartup?.()) {
|
||||||
|
|||||||
Reference in New Issue
Block a user