support nip94 and fix some bugs
This commit is contained in:
@@ -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]);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user