add to queue rather than invoking sprig object directly, as it's still being setup (#940)

This commit is contained in:
Barak Gila 2022-09-27 12:13:11 -07:00 committed by GitHub
parent 5e34b5a911
commit e2047210b7
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -25,9 +25,9 @@ try {
} }
export function setUserId(userId: string): void { export function setUserId(userId: string): void {
window.Sprig.setUserId(userId) window.Sprig('setUserId', userId)
} }
export function setAttributes(attributes: Record<string, unknown>): void { export function setAttributes(attributes: Record<string, unknown>): void {
window.Sprig.setAttributes(attributes) window.Sprig('setAttributes', attributes)
} }