Explorar o código

Revert "keep asset url to detect compression"

This reverts commit 2bc45c25fe5694c10aab2c0cdd16fd4cae4333ef.
Sebastian Bittrich %!s(int64=2) %!d(string=hai) anos
pai
achega
04908495e9
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  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);
             });