Skip to content

Commit 6b2c8a3

Browse files
committed
test: handle userId set through start
1 parent 0535806 commit 6b2c8a3

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

test/e2e/index.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -68,7 +68,6 @@ $('#start,#startFromCache')
6868

6969
$('.requires-start').removeClass('requires-start')
7070
$('.session-status .badge-warning').remove()
71-
updateUserId()
7271
})
7372

7473
$('#forceContentUpdate')
@@ -166,6 +165,7 @@ $('#sdkVersion').text(Leanplum.VERSION)
166165
// populate initial info
167166
updateUserId()
168167
refreshWebPush()
168+
Leanplum.on('start', updateUserId)
169169

170170
function refreshWebPush(): void {
171171
const isSupported = Leanplum.isWebPushSupported()

0 commit comments

Comments
 (0)