@alipay/ams-checkout 0.0.1784626568-dev.1 → 0.0.1784626568-dev.11
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/ams-checkout.js +3 -3
- package/dist/ams-checkout.min.js +1 -1
- package/dist/ams-checkout.min.js.map +1 -1
- package/esm/config/index.js +1 -1
- package/esm/core/component/element/modernElementController/index.js +11 -2
- package/esm/modern/tools.js +1 -1
- package/esm/plugin/component/channel.js +2 -0
- package/esm/util/logger.js +1 -1
- package/package.json +1 -1
|
@@ -92,6 +92,8 @@ export var handleGooglePay = function handleGooglePay(data) {
|
|
|
92
92
|
var script = document.createElement('script');
|
|
93
93
|
script.src = 'https://pay.google.com/gp/p/js/pay.js';
|
|
94
94
|
script.async = true;
|
|
95
|
+
|
|
96
|
+
// 当判断条件成立时,代表 document.body.appendChild 方法已经被劫持
|
|
95
97
|
if (document.body.appendChild !== Node.prototype.appendChild) {
|
|
96
98
|
// 使用原生 appendChild 避免微前端沙箱(如 qiankun)将动态 <script> 劫持为 fetch 加载,
|
|
97
99
|
// 导致不支持 CORS 的第三方脚本(如 pay.google.com)加载失败
|
package/esm/util/logger.js
CHANGED