From 21f13400c3fbcf7c98434f872647d2fcb7740e53 Mon Sep 17 00:00:00 2001 From: Barak Gila Date: Tue, 27 Sep 2022 10:15:03 -0700 Subject: [PATCH] add to queue rather than invoking sprig object directly, as it's still being setup --- web/lib/service/sprig.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/web/lib/service/sprig.ts b/web/lib/service/sprig.ts index ee6052b7..9353020d 100644 --- a/web/lib/service/sprig.ts +++ b/web/lib/service/sprig.ts @@ -25,9 +25,9 @@ try { } export function setUserId(userId: string): void { - window.Sprig.setUserId(userId) + window.Sprig('setUserId', userId) } export function setAttributes(attributes: Record): void { - window.Sprig.setAttributes(attributes) + window.Sprig('setAttributes', attributes) }