diff --git a/src/lib/components/chrome/SplashScreen.svelte b/src/lib/components/chrome/SplashScreen.svelte index 01a21a1..0ca888e 100644 --- a/src/lib/components/chrome/SplashScreen.svelte +++ b/src/lib/components/chrome/SplashScreen.svelte @@ -509,9 +509,9 @@ - {:else} + {:else if isTauri || failed || notConfigured || ringFull}
- {#if !failed && !notConfigured} + {#if !failed && !notConfigured && isTauri} (undefined); let tabIndicator = $state({ left: 0, width: 0 }); @@ -337,14 +337,14 @@ {:else}
{#if showLocal} -
libraryTarget = { pkgName: '__local__', extensionName: 'Local Source', iconUrl: '' }}> +
+ {/if} {#each groups as { base, primary, variants }} arr.findIndex(x => x.mangaId === s.mangaId) === i) - .slice(0, 5) + .slice(0, 6) ) diff --git a/src/lib/state/boot.svelte.ts b/src/lib/state/boot.svelte.ts index c2803c5..4f782dd 100644 --- a/src/lib/state/boot.svelte.ts +++ b/src/lib/state/boot.svelte.ts @@ -6,6 +6,7 @@ import { appState } from '$lib/state/app.svelte' import { settingsState } from '$lib/state/settings.svelte' const MAX_ATTEMPTS = 40 +const WEB_MAX_ATTEMPTS = 1 const BG_MAX_ATTEMPTS = 120 export const boot = $state({ @@ -101,7 +102,8 @@ export async function startProbe( if (result === 'ok') { handleProbeSuccess(gen); return } if (result === 'auth_required') { handleAuthRequired(gen, authMode, user, pass); return } - if (tries >= MAX_ATTEMPTS) { boot.failed = true; appState.status = 'error'; startBackgroundProbe(gen, authMode, user, pass); return } + const maxAttempts = appState.platform === 'tauri' ? MAX_ATTEMPTS : WEB_MAX_ATTEMPTS + if (tries >= maxAttempts) { boot.failed = true; appState.status = 'error'; startBackgroundProbe(gen, authMode, user, pass); return } setTimeout(probe, Math.min(500 + tries * 200, 2000)) } diff --git a/src/lib/types/extension.ts b/src/lib/types/extension.ts index 3c3e405..9e95fe6 100644 --- a/src/lib/types/extension.ts +++ b/src/lib/types/extension.ts @@ -7,6 +7,7 @@ export interface Source { isNsfw: boolean isConfigurable: boolean supportsLatest: boolean + extension?: { pkgName: string } } export interface Extension {