浏览代码

Revert "keep asset url to detect compression"

This reverts commit 2bc45c25fe5694c10aab2c0cdd16fd4cae4333ef.
Sebastian Bittrich 2 年之前
父节点
当前提交
04908495e9
共有 1 个文件被更改,包括 1 次插入1 次删除
  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);
             });