@lvce-editor/iframe-worker 5.3.0 → 5.4.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.
@@ -960,7 +960,7 @@ const getIframeSrcRemote = (webViews, webViewPort, webViewId, locationProtocol,
960
960
  // TODO when running in remote, try scope webviews by path or if possible by domain
961
961
  if (platform$1 === Electron) {
962
962
  const webViewId = webView.id;
963
- iframeSrc = `${webViewScheme}://${webViewId}/`;
963
+ iframeSrc = `${webViewScheme}://${webViewId}`;
964
964
  } else if (platform$1 === Remote) {
965
965
  webViewRoot = webView.uri;
966
966
  iframeSrc = createLocalHostUrl(locationProtocol, locationHost, isGitpod, webViewPort);
@@ -1004,6 +1004,7 @@ const getDefaultBaseUrl = webView => {
1004
1004
  }
1005
1005
  return '';
1006
1006
  };
1007
+
1007
1008
  const getWebViewBaseUrl = (webView, locationOrigin) => {
1008
1009
  const defaultBaseUrl = getDefaultBaseUrl(webView);
1009
1010
  if (defaultBaseUrl.startsWith(locationOrigin)) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@lvce-editor/iframe-worker",
3
- "version": "5.3.0",
3
+ "version": "5.4.0",
4
4
  "description": "Web Worker to manage creation and lifecycle of iframes in Lvce Editor",
5
5
  "main": "dist/iframeWorkerMain.js",
6
6
  "type": "module",