Skip to content

Commit

Permalink
Merge branch 'next' into fix/pxTransform
Browse files Browse the repository at this point in the history
# Conflicts:
#	packages/taro-mini-runner/src/__tests__/__snapshots__/alipay.spec.ts.snap
#	packages/taro-mini-runner/src/__tests__/__snapshots__/tabbar.spec.ts.snap
  • Loading branch information
Chen-jj committed Apr 26, 2021
2 parents abd4a47 + 112c85b commit 83789da
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions packages/taro-alipay/src/runtime.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,15 @@
import { mergeReconciler, mergeInternalComponents } from '@tarojs/shared'
import { hostConfig, components } from './runtime-utils'

// 支付宝真机只有 navigator.swuserAgent
const { userAgent } = navigator
Object.defineProperty(navigator, 'userAgent', {
configurable: true,
enumerable: true,
get () {
return userAgent || (navigator as any).swuserAgent || ''
}
})

mergeReconciler(hostConfig)
mergeInternalComponents(components)

0 comments on commit 83789da

Please sign in to comment.