feat: refactor openExternalUrl to use dedicated Tauri shell utility

This commit is contained in:
2026-01-24 08:12:39 +11:00
parent 13d87e44c8
commit 92be07cb47
2 changed files with 11 additions and 4 deletions

View File

@@ -0,0 +1,9 @@
/**
* Tauri shell open utility, only imported in Tauri builds
*/
export async function openWithTauriShell(url: string): Promise<void> {
// @ts-ignore
const { open } = await import(/* @vite-ignore */ '@tauri-apps/plugin-shell');
await open(url);
}