Compare commits
1
Commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
65363cbd77 |
@@ -27,12 +27,7 @@ function readParams(search: string, target: UniLaunchParams): void {
|
|||||||
|
|
||||||
function hasNativeShellMarker(): boolean {
|
function hasNativeShellMarker(): boolean {
|
||||||
const params = getLaunchParams()
|
const params = getLaunchParams()
|
||||||
if (params.nativeShell === 'uniapp') return true
|
return params.nativeShell === 'uniapp'
|
||||||
|
|
||||||
// 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 环境中
|
// 是否运行在 uniapp web-view 环境中
|
||||||
|
|||||||
Reference in New Issue
Block a user