@lvce-editor/iframe-worker 5.28.0 → 5.29.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 +3 -0
- package/package.json +1 -1
package/dist/iframeWorkerMain.js
CHANGED
|
@@ -975,6 +975,9 @@ const getIframeSrcRemoteBaseUrl = (webViewRoot, locationOrigin, platform, webVie
|
|
|
975
975
|
if (webViewRoot && (webViewRoot.startsWith('http:') || webViewRoot.startsWith('https:'))) {
|
|
976
976
|
if (webViewRoot.startsWith(locationOrigin)) {
|
|
977
977
|
const baseUrl = webViewRoot.slice(locationOrigin.length);
|
|
978
|
+
if (baseUrl.startsWith('/remote')) {
|
|
979
|
+
return baseUrl;
|
|
980
|
+
}
|
|
978
981
|
return `/remote${root}${baseUrl}`;
|
|
979
982
|
}
|
|
980
983
|
return webViewRoot;
|