add to queue rather than invoking sprig object directly, as it's still being setup (#940)
This commit is contained in:
parent
5e34b5a911
commit
e2047210b7
|
@ -25,9 +25,9 @@ try {
|
|||
}
|
||||
|
||||
export function setUserId(userId: string): void {
|
||||
window.Sprig.setUserId(userId)
|
||||
window.Sprig('setUserId', userId)
|
||||
}
|
||||
|
||||
export function setAttributes(attributes: Record<string, unknown>): void {
|
||||
window.Sprig.setAttributes(attributes)
|
||||
window.Sprig('setAttributes', attributes)
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue
Block a user