Skip to content
Snippets Groups Projects
Unverified Commit 524e6d4f authored by David Sehnal's avatar David Sehnal Committed by GitHub
Browse files

Merge pull request #615 from JonStargaryen/master

keep asset url to detect compression
parents 6a32f85e 423f5b05
No related branches found
No related tags found
No related merge requests found
...@@ -7,6 +7,7 @@ Note that since we don't clearly distinguish between a public and private interf ...@@ -7,6 +7,7 @@ Note that since we don't clearly distinguish between a public and private interf
## [Unreleased] ## [Unreleased]
- Make `PluginContext.initContainer` checkered canvas background optional - Make `PluginContext.initContainer` checkered canvas background optional
- Store URL of downloaded assets to detect zip/gzip based on extension
## [v3.23.0] - 2022-10-19 ## [v3.23.0] - 2022-10-19
......
...@@ -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