This commit is contained in:
Eric Rosenbaum 2016-10-13 11:35:52 -04:00
parent 80764f053d
commit e084a76485

View file

@ -64,9 +64,9 @@ function parseScratchObject (object, runtime, topLevel) {
}
}
// Sounds from JSON
if (object.hasOwnProperty('sounds')) {
for (var i = 0; i < object.sounds.length; i++) {
var sound = object.sounds[i];
if (object.hasOwnProperty('sounds')) {
for (var s = 0; s < object.sounds.length; s++) {
var sound = object.sounds[s];
sprite.sounds.push({
format: sound.format,
fileUrl: 'https://cdn.assets.scratch.mit.edu/internalapi/asset/'