@lvce-editor/extension-management-worker 4.21.0 → 4.21.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1738,9 +1738,10 @@ const isHttpLocation = () => {
1738
1738
  return Reflect.has(globalThis, 'location') && globalThis.location.protocol.startsWith('http');
1739
1739
  };
1740
1740
  const getRuntimeContext = async (assetDir, platform) => {
1741
+ const shouldInferPlatform = isMissingPlatform(platform);
1741
1742
  const resolvedAssetDir = isMissingAssetDir(assetDir) ? await invoke$3('Layout.getAssetDir') : assetDir;
1742
- const resolvedPlatform = isMissingPlatform(platform) ? await invoke$3('Layout.getPlatform') : platform;
1743
- if (isHttpLocation() && isStaticHttpAssetDir(resolvedAssetDir)) {
1743
+ const resolvedPlatform = shouldInferPlatform ? await invoke$3('Layout.getPlatform') : platform;
1744
+ if (shouldInferPlatform && isHttpLocation() && isStaticHttpAssetDir(resolvedAssetDir)) {
1744
1745
  return {
1745
1746
  assetDir: resolvedAssetDir,
1746
1747
  platform: Web
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@lvce-editor/extension-management-worker",
3
- "version": "4.21.0",
3
+ "version": "4.21.1",
4
4
  "description": "Webworker for the Extension Management functionality in Lvce Editor.",
5
5
  "keywords": [
6
6
  "web-worker"