diff --git a/src/lib/app/bootstrap.ts b/src/lib/app/bootstrap.ts index 8eae96d92..edec95b86 100644 --- a/src/lib/app/bootstrap.ts +++ b/src/lib/app/bootstrap.ts @@ -6,7 +6,7 @@ */ import { invoke } from '@tauri-apps/api/core'; -import { getCurrent } from '@tauri-apps/api/webview'; +import { getCurrentWebview } from '@tauri-apps/api/webview'; import { goBack, goForward } from '$lib/stores/navigationStore'; // ============ Theme Management ============ @@ -31,7 +31,7 @@ export async function applySavedZoom(): Promise { if (!Number.isFinite(zoom) || zoom <= 0) return; try { - await getCurrent().setZoom(zoom); + await getCurrentWebview().setZoom(zoom); } catch (err) { console.warn('Failed to apply saved zoom:', err); } diff --git a/src/lib/components/views/SettingsView.svelte b/src/lib/components/views/SettingsView.svelte index 739210f43..993b86f59 100644 --- a/src/lib/components/views/SettingsView.svelte +++ b/src/lib/components/views/SettingsView.svelte @@ -1,7 +1,7 @@