Add image/jpeg as a valid resource type for downloading image assets.

This commit is contained in:
Sledmore 2022-06-27 00:19:54 +00:00
parent 137d23f906
commit a09496591d

View File

@ -178,7 +178,7 @@ export class AssetManager extends Disposable implements IAssetManager
continue;
}
if((resourceType === 'image/png') || (resourceType === 'image/gif'))
if((resourceType === 'image/png') || (resourceType === 'image/jpeg') || (resourceType === 'image/gif'))
{
const base64 = ArrayBufferToBase64(resource.data);
const baseTexture = new BaseTexture(`data:${ resourceType };base64,${ base64 }`);