mirror of
https://github.com/scratchfoundation/scratch-vm.git
synced 2024-12-24 15:02:52 -05:00
Don't store costume data uris on costumes
This commit is contained in:
parent
c5cf6d9b40
commit
2181e51c38
1 changed files with 2 additions and 2 deletions
|
@ -13,7 +13,6 @@ const log = require('../util/log');
|
|||
* @returns {?Promise} - a promise which will resolve after skinId is set, or null on error.
|
||||
*/
|
||||
const loadCostume = function (md5ext, costume, runtime) {
|
||||
costume.md5ext = md5ext;
|
||||
if (!runtime.storage) {
|
||||
log.error('No storage module present; cannot load costume asset: ', md5ext);
|
||||
return Promise.resolve(costume);
|
||||
|
@ -31,7 +30,8 @@ const loadCostume = function (md5ext, costume, runtime) {
|
|||
];
|
||||
|
||||
let promise = runtime.storage.load(assetType, md5).then(costumeAsset => {
|
||||
costume.url = costumeAsset.encodeDataURI();
|
||||
costume.assetId = costumeAsset.assetId;
|
||||
costume.assetType = assetType;
|
||||
return costumeAsset;
|
||||
});
|
||||
|
||||
|
|
Loading…
Reference in a new issue