Skip to content
Snippets Groups Projects
Commit 2bc45c25 authored by Sebastian Bittrich's avatar Sebastian Bittrich
Browse files

keep asset url to detect compression

parent 6a32f85e
No related branches found
No related tags found
No related merge requests found
...@@ -100,7 +100,7 @@ class AssetManager { ...@@ -100,7 +100,7 @@ class AssetManager {
} }
const data = await ajaxGet({ ...asset, type: 'binary' }).runInContext(ctx); 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 }); this._assets.set(asset.id, { asset, file, refCount: 1 });
return Asset.Wrapper(await readFromFile(file, type).runInContext(ctx), asset, this); return Asset.Wrapper(await readFromFile(file, type).runInContext(ctx), asset, this);
}); });
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment