add to queue rather than invoking sprig object directly, as it's still being setup
This commit is contained in:
parent
723d9dbece
commit
21f13400c3
|
@ -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