@lvce-editor/iframe-worker 1.4.0 → 1.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.
@@ -339,8 +339,7 @@ const getIframeSandbox = (webView, platform) => {
339
339
  if (platform === Web) {
340
340
  return [AllowScripts, ...extensionSandbox];
341
341
  }
342
- // TODO set something for electron
343
- return [...extensionSandbox];
342
+ return [AllowScripts, AllowSameOrigin, ...extensionSandbox];
344
343
  };
345
344
 
346
345
  const getOrigin = () => {
package/package.json CHANGED
@@ -1,10 +1,16 @@
1
1
  {
2
2
  "name": "@lvce-editor/iframe-worker",
3
- "version": "1.4.0",
4
- "description": "",
3
+ "version": "1.5.0",
4
+ "description": "Web Worker to manage creation and lifecycle of iframes in Lvce Editor",
5
5
  "main": "dist/iframeWorkerMain.js",
6
6
  "type": "module",
7
- "keywords": [],
8
- "author": "",
7
+ "repository": {
8
+ "type": "git",
9
+ "url": "git@github.com:lvce-editor/iframe-worker.git"
10
+ },
11
+ "keywords": [
12
+ "iframe"
13
+ ],
14
+ "author": "Lvce Editor",
9
15
  "license": "MIT"
10
16
  }