improve chat

This commit is contained in:
Peter Maquiran
2024-08-17 22:05:57 +01:00
parent eb615d4335
commit 650c772084
43 changed files with 712 additions and 1540 deletions
+1
View File
@@ -70,6 +70,7 @@ export function createDataURL(base64String: string, mimeType: string): string {
* Converts a `Blob` to a Data URL.
* @param {Blob} blob - The `Blob` to be converted.
* @returns {Promise<string>} A promise that resolves with the Data URL representation of the `Blob`.
* @example const result = 'data:audio/aac;base64,ZGF0YTphdWRpby9hYWM7YmFzZTY0…RnNRQmxmL0FGQUl'
*/
export function convertBlobToDataURL(blob: Blob): Promise<string> {
return new Promise<string>((resolve, reject) => {