mirror of
https://github.com/arfct/itty-bitty.git
synced 2026-03-11 08:54:33 +00:00
Fix encoding detection
This commit is contained in:
parent
6a9c2a5112
commit
42b1193bfa
1 changed files with 1 additions and 1 deletions
|
|
@ -55,7 +55,7 @@ function decompressDataURL(dataURL, preamble, callback) {
|
|||
let encoding = info.encoding;
|
||||
let encodingIndex = dataURL.indexOf(encoding);
|
||||
|
||||
if (encoding != "base64") {
|
||||
if (encoding && encoding != "base64") {
|
||||
var base64 = dataURL.substring(encodingIndex + LZMA64_MARKER.length + 1);
|
||||
base64 = base64.replace("-",""); // TODO: apply this elsewhere;
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue