2 lines
356 B
JavaScript
2 lines
356 B
JavaScript
function a(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}async function l(e){return fetch(e).then(o=>o.blob()).then(o=>new Promise((n,r)=>{const t=new FileReader;t.onloadend=()=>{typeof t.result=="string"?n(t.result):r("Failed to convert blob to base64")},t.onerror=r,t.readAsDataURL(o)}))}export{a as g,l as u};
|