Compare commits
1
Commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
35e47bf0a1 |
@@ -27,7 +27,12 @@ function readParams(search: string, target: UniLaunchParams): void {
|
||||
|
||||
function hasNativeShellMarker(): boolean {
|
||||
const params = getLaunchParams()
|
||||
return params.nativeShell === 'uniapp'
|
||||
if (params.nativeShell === 'uniapp') return true
|
||||
|
||||
// Compatibility for already-installed shells. They have always appended a
|
||||
// timestamp together with the native SSO context, even before the explicit
|
||||
// nativeShell marker existed.
|
||||
return Boolean(params.ts && (params.token || params.userId))
|
||||
}
|
||||
|
||||
// 是否运行在 uniapp web-view 环境中
|
||||
|
||||
Reference in New Issue
Block a user