Skip to content
Snippets Groups Projects
Commit 0b71d4f6 authored by Paul Kaplan's avatar Paul Kaplan
Browse files

Indent previous then also

parent d5c4de62
No related branches found
No related tags found
No related merge requests found
...@@ -31,15 +31,16 @@ class SoundLibrary extends React.PureComponent { ...@@ -31,15 +31,16 @@ class SoundLibrary extends React.PureComponent {
const idParts = md5ext.split('.'); const idParts = md5ext.split('.');
const md5 = idParts[0]; const md5 = idParts[0];
const vm = this.props.vm; const vm = this.props.vm;
vm.runtime.storage.load(vm.runtime.storage.AssetType.Sound, md5).then(soundAsset => { vm.runtime.storage.load(vm.runtime.storage.AssetType.Sound, md5)
const sound = { .then(soundAsset => {
md5: md5ext, const sound = {
name: soundItem.name, md5: md5ext,
format: soundItem.format, name: soundItem.name,
data: soundAsset.data format: soundItem.format,
}; data: soundAsset.data
return this.audioEngine.decodeSound(sound); };
}) return this.audioEngine.decodeSound(sound);
})
.then(soundId => { .then(soundId => {
this.player.playSound(soundId); this.player.playSound(soundId);
}); });
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment