@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.
- package/dist/iframeWorkerMain.js +4 -1
- package/package.json +1 -1
package/dist/iframeWorkerMain.js
CHANGED
|
@@ -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
|
-
|
|
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);
|