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