mirror of
https://github.com/futurepress/epub.js.git
synced 2025-10-05 15:32:55 +02:00
fix unarchiver base64 mime
This commit is contained in:
parent
35daec1a0c
commit
f5fe50bd24
4 changed files with 5 additions and 5 deletions
4
dist/epub.js
vendored
4
dist/epub.js
vendored
|
@ -7827,7 +7827,7 @@ function createBlobUrl(content, mime){
|
||||||
return tempUrl;
|
return tempUrl;
|
||||||
};
|
};
|
||||||
|
|
||||||
function createBase64Url(content, mime, cb){
|
function createBase64Url(content, mime){
|
||||||
var string;
|
var string;
|
||||||
var data;
|
var data;
|
||||||
var datauri;
|
var datauri;
|
||||||
|
@ -12913,7 +12913,7 @@ Unarchive.prototype.getBase64 = function(url, _mimeType){
|
||||||
if(entry) {
|
if(entry) {
|
||||||
mimeType = _mimeType || mime.lookup(entry.name);
|
mimeType = _mimeType || mime.lookup(entry.name);
|
||||||
return entry.async("base64").then(function(data) {
|
return entry.async("base64").then(function(data) {
|
||||||
return "data:" + mime + ";base64," + data;
|
return "data:" + mimeType + ";base64," + data;
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
|
2
dist/epub.js.map
vendored
2
dist/epub.js.map
vendored
File diff suppressed because one or more lines are too long
|
@ -414,7 +414,7 @@ function createBlobUrl(content, mime){
|
||||||
return tempUrl;
|
return tempUrl;
|
||||||
};
|
};
|
||||||
|
|
||||||
function createBase64Url(content, mime, cb){
|
function createBase64Url(content, mime){
|
||||||
var string;
|
var string;
|
||||||
var data;
|
var data;
|
||||||
var datauri;
|
var datauri;
|
||||||
|
|
|
@ -122,7 +122,7 @@ Unarchive.prototype.getBase64 = function(url, _mimeType){
|
||||||
if(entry) {
|
if(entry) {
|
||||||
mimeType = _mimeType || mime.lookup(entry.name);
|
mimeType = _mimeType || mime.lookup(entry.name);
|
||||||
return entry.async("base64").then(function(data) {
|
return entry.async("base64").then(function(data) {
|
||||||
return "data:" + mime + ";base64," + data;
|
return "data:" + mimeType + ";base64," + data;
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue