support nip94 and fix some bugs

This commit is contained in:
Ren Amamiya
2023-08-09 09:04:16 +07:00
parent e6c6793f6e
commit d1d0a462f4
11 changed files with 285 additions and 166 deletions

View File

@@ -1,6 +1,6 @@
import { readBinaryFile } from '@tauri-apps/plugin-fs';
export async function createBlobFromFile(path: string): Promise<Uint8Array> {
export async function createBlobFromFile(path: string): Promise<Blob> {
const file = await readBinaryFile(path);
return file;
return new Blob([file]);
}