@lvce-editor/iframe-worker 3.4.0 → 3.5.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.
@@ -953,7 +953,9 @@ const getIframeSrcRemote = (webViews, webViewPort, webViewId, locationProtocol,
953
953
  // TODO either
954
954
  // - load webviews the same as in web using blob urls
955
955
  // - load webviews from a pattern like /webviews/:id/:fileName
956
- iframeContent = iframeContent.replaceAll('/media/', '/').replaceAll('//', '/');
956
+ if (!webView.path) {
957
+ iframeContent = iframeContent.replaceAll('/media/', '/').replaceAll('//', '/');
958
+ }
957
959
  return {
958
960
  srcDoc: '',
959
961
  iframeSrc,
@@ -1213,6 +1215,7 @@ const getModule = platform => {
1213
1215
  return register$1;
1214
1216
  }
1215
1217
  };
1218
+
1216
1219
  const register = async (previewServerId, webViewPort, frameAncestors, webViewRoot, csp, iframeContent) => {
1217
1220
  const fn = getModule(platform);
1218
1221
  return fn(previewServerId, webViewPort, frameAncestors, webViewRoot, csp, iframeContent);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@lvce-editor/iframe-worker",
3
- "version": "3.4.0",
3
+ "version": "3.5.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",