Skip to content

Commit

Permalink
Merge branch 'xcratch-dev' into xcratch
Browse files Browse the repository at this point in the history
  • Loading branch information
yokobond committed Nov 18, 2021
2 parents 34329d0 + fdb9706 commit d596b93
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions src/lib/backpack/costume-payload.js
Original file line number Diff line number Diff line change
Expand Up @@ -23,8 +23,13 @@ const costumePayload = costume => {
payload.mime = 'image/png';
payload.body = assetDataUrl.replace('data:image/png;base64,', '');
break;
case 'jpg':
payload.mime = 'image/jpg';
payload.body = assetDataUrl.replace('data:image/png;base64,', '');
break;
default:
alert(`Cannot serialize for format: ${assetDataFormat}`); // eslint-disable-line
return null;
}

// Do not generate the thumbnail from the raw asset. Instead use the getCostumeUrl
Expand Down

0 comments on commit d596b93

Please sign in to comment.