Register music extension assets

This commit is contained in:
Eric Rosenbaum committed 2017-11-14 13:52:41 -05:00
1 parent d9c28d12d3
commit b97d5e0efa
1 file changed
+4
+4
View File
@@ -25,6 +25,10 @@ class Storage extends ScratchStorage {
[this.AssetType.ImageVector, this.AssetType.ImageBitmap, this.AssetType.Sound],
asset => `${ASSET_SERVER}/internalapi/asset/${asset.assetId}.${asset.dataFormat}/get/`
);
this.addWebSource(
[this.AssetType.Sound],
asset => `/static/extension-assets/scratch3_music/${asset.assetId}.${asset.dataFormat}`
);
defaultProjectAssets.forEach(asset => this.cache(
this.AssetType[asset.assetType],
this.DataFormat[asset.dataFormat],