From 2bc45c25fe5694c10aab2c0cdd16fd4cae4333ef Mon Sep 17 00:00:00 2001
From: Sebastian Bittrich <sebastian.bittrich@rcsb.org>
Date: Thu, 10 Nov 2022 13:13:49 -0800
Subject: [PATCH] keep asset url to detect compression

---
 src/mol-util/assets.ts | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/mol-util/assets.ts b/src/mol-util/assets.ts
index 18e4f3d53..4fb7d406a 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);
             });
-- 
GitLab