|
|
@@ -48,7 +48,7 @@ this.SingleFile = (() => {
|
|
|
const bytes = new Uint8Array(buffer);
|
|
|
let base64Content = "";
|
|
|
bytes.forEach(byte => base64Content += String.fromCharCode(byte));
|
|
|
- return "data:" + (contentType ? contentType + ";" : "") + "base64," + btoa(base64Content);
|
|
|
+ return "data:" + (contentType || "") + ";" + "base64," + btoa(base64Content);
|
|
|
} catch (e) {
|
|
|
return "data:base64,";
|
|
|
}
|