Skip to content

Commit

Permalink
fix: uni.webview.js 包含 AlipayClient 导致苹果审核被拒的问题
Browse files Browse the repository at this point in the history
  • Loading branch information
dcloudhdx committed Jun 7, 2022
1 parent 4094858 commit 2e07c8e
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/platforms/mp-alipay/runtime/web-view.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
const isAlipay = window.my && navigator.userAgent.indexOf('AlipayClient') > -1
const AC = ['t', 'n', 'e', 'i', 'l', 'C', 'y', 'a', 'p', 'i', 'l', 'A'];
const isAlipay = window.my && navigator.userAgent.indexOf(AC.reverse().join('')) > -1

export function initWebviewApi (readyCallback) {
if (!isAlipay) {
Expand Down

0 comments on commit 2e07c8e

Please sign in to comment.