@lvce-editor/iframe-worker 5.28.0 → 5.30.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 -2
- 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;
|
|
@@ -1875,8 +1878,7 @@ const saveState = async () => {
|
|
|
1875
1878
|
value: savedState
|
|
1876
1879
|
});
|
|
1877
1880
|
} catch (error) {
|
|
1878
|
-
console.error(error);
|
|
1879
|
-
// TODO maybe log the error
|
|
1881
|
+
console.error(new VError(error, 'Failed to save state'));
|
|
1880
1882
|
// ignore
|
|
1881
1883
|
}
|
|
1882
1884
|
}
|