Skip to content

Commit bd6b8bd

Browse files
committed
Add getBlob method on BackendResponse
1 parent 507c89c commit bd6b8bd

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

src/LiveComponent/assets/src/Backend/BackendResponse.ts

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,4 +13,8 @@ export default class {
1313

1414
return this.body;
1515
}
16+
17+
async getBlob(): Promise<Blob> {
18+
return await this.response.blob();
19+
}
1620
}

0 commit comments

Comments
 (0)