|
@ -566,7 +566,7 @@ async function getNotificationCount() { |
|
|
return result; |
|
|
return result; |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
export async function blobToBase64String(blob) { |
|
|
async function blobToBase64String(blob) { |
|
|
return new Promise((resolve, reject) => { |
|
|
return new Promise((resolve, reject) => { |
|
|
const reader = new FileReader(); |
|
|
const reader = new FileReader(); |
|
|
reader.onloadend = () => resolve(reader.result); // potential problem if it returns an ArrayBuffer?
|
|
|
reader.onloadend = () => resolve(reader.result); // potential problem if it returns an ArrayBuffer?
|
|
|