@lvce-editor/iframe-worker 6.1.0 → 6.2.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.
@@ -2134,6 +2134,10 @@ const getRemoteUrl = async options => {
2134
2134
  }
2135
2135
  return `/remote/${uri}`;
2136
2136
  }
2137
+ if ((platform === Remote || platform === Electron) && protocol === 'file') {
2138
+ const rest = uri.slice(7);
2139
+ return `/remote${rest}`;
2140
+ }
2137
2141
  if (platform === Electron && !protocol) {
2138
2142
  if (uri.startsWith('/')) {
2139
2143
  return `/remote${uri}`;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@lvce-editor/iframe-worker",
3
- "version": "6.1.0",
3
+ "version": "6.2.0",
4
4
  "description": "Web Worker to manage creation and lifecycle of iframes in Lvce Editor",
5
5
  "keywords": [
6
6
  "iframe"