|
|
@ -67,7 +67,7 @@ import { EmbeddedFile, EMBED_TYPES } from './main'; |
|
|
|
document.body.appendChild(a); |
|
|
|
a.style.display = 'none'; |
|
|
|
const thumb = (typeof file.data === 'function') ? await file.data() : file.data ; |
|
|
|
if(!(thumb instanceof Buffer)) { |
|
|
|
if(!(thumb instanceof ArrayBuffer || thumb instanceof Uint8Array)) { |
|
|
|
console.error("Couldn't download File"); |
|
|
|
debugger; |
|
|
|
return; |
|
|
|