diff --git a/CHANGELOG.md b/CHANGELOG.md index 5cef38d6f9c31c589e0dd89fa3ba0abbb53f3c11..82c807e707b582f94f6a81fe3db30b971b48c9db 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -7,6 +7,7 @@ Note that since we don't clearly distinguish between a public and private interf ## [Unreleased] - Make `PluginContext.initContainer` checkered canvas background optional +- Store URL of downloaded assets to detect zip/gzip based on extension ## [v3.23.0] - 2022-10-19 diff --git a/src/mol-util/assets.ts b/src/mol-util/assets.ts index 18e4f3d531e63706e115bb34716332f7259e24e7..4fb7d406a928117fbecfef5d40d7098e948c84eb 100644 --- a/src/mol-util/assets.ts +++ b/src/mol-util/assets.ts @@ -100,7 +100,7 @@ class AssetManager { } const data = await ajaxGet({ ...asset, type: 'binary' }).runInContext(ctx); - const file = new File([data], 'raw-data'); + const file = new File([data], asset.url); this._assets.set(asset.id, { asset, file, refCount: 1 }); return Asset.Wrapper(await readFromFile(file, type).runInContext(ctx), asset, this); });