fix: restrict external file access

This commit is contained in:
Yuri Karamian
2026-08-17 21:02:05 +02:00
parent 81e4e26290
commit 33d77cf2fd
8 changed files with 264 additions and 65 deletions
+4
View File
@@ -364,6 +364,10 @@ export async function openFile(path: string): Promise<void> {
return invoke("open_file", { path });
}
export async function revealFile(path: string): Promise<void> {
return invoke("reveal_file", { path });
}
export async function openUrl(url: string): Promise<void> {
return invoke("open_url", { url });
}