mirror of
https://github.com/lifegpc/garbro-rs.git
synced 2026-07-08 01:32:13 +08:00
Fix bug
This commit is contained in:
@@ -14,6 +14,5 @@ export async function listDirectory(path: string, options?: FileOptions[]): Prom
|
||||
}
|
||||
|
||||
export async function previewImage(path: string, options?: FileOptions[]): Promise<Uint8Array> {
|
||||
const bytes: number[] = await invoke("preview_image", { path, options: options ?? null });
|
||||
return new Uint8Array(bytes);
|
||||
return await invoke("preview_image", { path, options: options ?? null });
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user