Browse Source

Revert "keep asset url to detect compression"

This reverts commit 2bc45c25fe5694c10aab2c0cdd16fd4cae4333ef.
Sebastian Bittrich 2 years ago
parent
commit
04908495e9
1 changed files with 1 additions and 1 deletions
  1. 1 1
      src/mol-util/assets.ts

+ 1 - 1
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], asset.url);
+                const file = new File([data], 'raw-data');
                 this._assets.set(asset.id, { asset, file, refCount: 1 });
                 return Asset.Wrapper(await readFromFile(file, type).runInContext(ctx), asset, this);
             });