working on both platforms

This commit is contained in:
Hailey
2024-02-13 22:45:59 -08:00
parent 4ac53f168a
commit f529738227
4 changed files with 36 additions and 18 deletions
+5 -1
View File
@@ -34,9 +34,13 @@ export async function uploadBlob(
): Promise<ComAtprotoRepoUploadBlob.Response> {
if (isWeb) {
// `blob` should be a data uri
return agent.uploadBlob(convertDataURIToUint8Array(blob), {
console.log(convertDataURIToUint8Array(blob))
const x = await agent.uploadBlob(convertDataURIToUint8Array(blob), {
encoding,
})
return x
} else {
// `blob` should be a path to a file in the local FS
return agent.uploadBlob(