mirror of
https://github.com/streetwriters/notesnook.git
synced 2026-02-24 20:20:21 +01:00
core: fix "type" does not exist
This commit is contained in:
@@ -124,10 +124,10 @@ export function toBlobURL(dataurl: string, id?: string) {
|
||||
if (id && OBJECT_URL_CACHE[id]) return OBJECT_URL_CACHE[id];
|
||||
if (!isDataUrl(dataurl)) return;
|
||||
|
||||
const { data, mime } = DataURL.toObject(dataurl); //.split(",");
|
||||
if (!data || !mime) return;
|
||||
const { data, mimeType } = DataURL.toObject(dataurl); //.split(",");
|
||||
if (!data || !mimeType) return;
|
||||
const objectURL = URL.createObjectURL(
|
||||
new Blob([Buffer.from(data, "base64")], { type: mime })
|
||||
new Blob([Buffer.from(data, "base64")], { type: mimeType })
|
||||
);
|
||||
|
||||
if (id) OBJECT_URL_CACHE[id] = objectURL;
|
||||
|
||||
Reference in New Issue
Block a user