fix(tracker): sessionToken start option back compat
This commit is contained in:
parent
a691658ac3
commit
6840213e77
1 changed files with 6 additions and 1 deletions
|
|
@ -88,7 +88,12 @@ export default class Session {
|
|||
}
|
||||
|
||||
applySessionHash(hash: string) {
|
||||
const [pageNoStr, token] = decodeURI(hash).split('&')
|
||||
const hashParts = decodeURI(hash).split('&')
|
||||
let token = hash
|
||||
let pageNoStr = '100500' // back-compat for sessionToken
|
||||
if (hashParts.length == 2) {
|
||||
;[token, pageNoStr] = hashParts
|
||||
}
|
||||
if (!pageNoStr || !token) {
|
||||
return
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue