seer-dynamic-component
Advanced tools
Comparing version 1.6.9 to 1.7.0
@@ -183,8 +183,12 @@ import "core-js/modules/es6.object.keys.js"; | ||
var origin; | ||
if (window._YMSHOST_) { | ||
origin = window._YMSHOST_; | ||
} else if (window.parent && window.parent._YMSHOST_) { | ||
origin = window.parent._YMSHOST_; | ||
} else if (window.opener && window.opener._YMSHOST_) { | ||
origin = window.opener._YMSHOST_; | ||
try { | ||
if (window._YMSHOST_) { | ||
origin = window._YMSHOST_; | ||
} else if (window.parent && window.parent._YMSHOST_) { | ||
origin = window.parent._YMSHOST_; | ||
} else if (window.opener && window.opener._YMSHOST_) { | ||
origin = window.opener._YMSHOST_; | ||
} | ||
} catch (error) { | ||
console.log('获取当前域名,在ncc中存在跨域问题'); | ||
} | ||
@@ -191,0 +195,0 @@ if (!origin) { |
{ | ||
"name": "seer-dynamic-component", | ||
"version": "1.6.9", | ||
"version": "1.7.0", | ||
"description": "", | ||
@@ -5,0 +5,0 @@ "main": "lib/index.js", |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
23831
567