@lvce-editor/extension-host-worker 5.38.0 → 5.40.0

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.
@@ -2964,7 +2964,7 @@ const isFileProtocol = protocol => {
2964
2964
  };
2965
2965
  const getRemoteUrlSync = uri => {
2966
2966
  const protocol = getProtocol(uri);
2967
- if (protocol === 'http://' || protocol === 'https://') {
2967
+ if (protocol === 'http' || protocol === 'https') {
2968
2968
  return uri;
2969
2969
  }
2970
2970
  const withoutPrefix = uri.startsWith('file://') ? uri.slice('file://'.length) : uri;
@@ -5478,6 +5478,9 @@ const getWebViewInfo2 = providerId => {
5478
5478
  };
5479
5479
 
5480
5480
  const getRemoteUrl = uri => {
5481
+ if (uri.startsWith('/')) {
5482
+ return `/remote${uri}`;
5483
+ }
5481
5484
  return `/remote/${uri}`;
5482
5485
  };
5483
5486
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@lvce-editor/extension-host-worker",
3
- "version": "5.38.0",
3
+ "version": "5.40.0",
4
4
  "description": "Webworker for the extension host functionality in Lvce Editor.",
5
5
  "keywords": [
6
6
  "web-worker"