@fonixtree/magic-design 0.0.136 → 0.0.138

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.
@@ -344,7 +344,7 @@ function (_super) {
344
344
  contentWrap.appendChild(closeImgDom);
345
345
  modelWrap.appendChild(shadowWrap);
346
346
  modelWrap.appendChild(contentWrap);
347
- document.body.appendChild(modelWrap);
347
+ (document.querySelector('[magic_designer]') || document.body).document.body.appendChild(modelWrap);
348
348
  createVideo('-modal-' + videoId, __assign(__assign({}, _this.props.opts), {
349
349
  autoplay: true
350
350
  }));
@@ -344,7 +344,7 @@ function (_super) {
344
344
  contentWrap.appendChild(closeImgDom);
345
345
  modelWrap.appendChild(shadowWrap);
346
346
  modelWrap.appendChild(contentWrap);
347
- document.body.appendChild(modelWrap);
347
+ (document.querySelector('[magic_designer]') || document.body).document.body.appendChild(modelWrap);
348
348
  createVideo('-modal-' + videoId, __assign(__assign({}, _this.props.opts), {
349
349
  autoplay: true
350
350
  }));
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@fonixtree/magic-design",
3
3
  "author": "Cylon Team",
4
- "version": "0.0.136",
4
+ "version": "0.0.138",
5
5
  "description": "Magic Design",
6
6
  "license": "MIT",
7
7
  "module": "es/index.js",