Skip to content
Snippets Groups Projects
Commit b97d5e0e authored by Eric Rosenbaum's avatar Eric Rosenbaum
Browse files

Register music extension assets

parent d9c28d12
Branches
Tags
No related merge requests found
...@@ -25,6 +25,10 @@ class Storage extends ScratchStorage { ...@@ -25,6 +25,10 @@ class Storage extends ScratchStorage {
[this.AssetType.ImageVector, this.AssetType.ImageBitmap, this.AssetType.Sound], [this.AssetType.ImageVector, this.AssetType.ImageBitmap, this.AssetType.Sound],
asset => `${ASSET_SERVER}/internalapi/asset/${asset.assetId}.${asset.dataFormat}/get/` 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( defaultProjectAssets.forEach(asset => this.cache(
this.AssetType[asset.assetType], this.AssetType[asset.assetType],
this.DataFormat[asset.dataFormat], this.DataFormat[asset.dataFormat],
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment