1
0
Fork 0
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:
Fred Chasen 2016-08-19 19:09:12 +02:00
parent 35daec1a0c
commit f5fe50bd24
4 changed files with 5 additions and 5 deletions

4
dist/epub.js vendored
View file

@ -7827,7 +7827,7 @@ function createBlobUrl(content, mime){
return tempUrl;
};
function createBase64Url(content, mime, cb){
function createBase64Url(content, mime){
var string;
var data;
var datauri;
@ -12913,7 +12913,7 @@ Unarchive.prototype.getBase64 = function(url, _mimeType){
if(entry) {
mimeType = _mimeType || mime.lookup(entry.name);
return entry.async("base64").then(function(data) {
return "data:" + mime + ";base64," + data;
return "data:" + mimeType + ";base64," + data;
});
}
};

2
dist/epub.js.map vendored

File diff suppressed because one or more lines are too long

View file

@ -414,7 +414,7 @@ function createBlobUrl(content, mime){
return tempUrl;
};
function createBase64Url(content, mime, cb){
function createBase64Url(content, mime){
var string;
var data;
var datauri;

View file

@ -122,7 +122,7 @@ Unarchive.prototype.getBase64 = function(url, _mimeType){
if(entry) {
mimeType = _mimeType || mime.lookup(entry.name);
return entry.async("base64").then(function(data) {
return "data:" + mime + ";base64," + data;
return "data:" + mimeType + ";base64," + data;
});
}
};