Skip to content

Commit f43e08f

Browse files
authored
Make Content-Type optional in convertBase64ToBlob (#251)
1 parent 51ee39e commit f43e08f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/wrapper/convertBase64ToBlob.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
* @param {string} contentType - The MIME type to assign to the resulting `Blob`.
66
* @returns {Blob} A `Blob` object containing the binary data from the base64 string.
77
*/
8-
export function convertBase64ToBlob(base64: string, contentType: string): Blob {
8+
export function convertBase64ToBlob(base64: string, contentType?: string): Blob {
99
// Decode base64 string to a binary string
1010
const binaryString = window.atob(base64);
1111

0 commit comments

Comments
 (0)