iteration 0

This commit is contained in:
Barak Gila 2022-09-26 13:17:06 -07:00
parent 88873b3c0d
commit e10017c859
2 changed files with 9 additions and 9 deletions

View File

@ -3,7 +3,7 @@ export type EnvConfig = {
firebaseConfig: FirebaseConfig
amplitudeApiKey?: string
twitchBotEndpoint?: string
sprigEnvironmentId: string
sprigEnvironmentId?: string
// IDs for v2 cloud functions -- find these by deploying a cloud function and
// examining the URL, https://[name]-[cloudRunId]-[cloudRunRegion].a.run.app

View File

@ -16,19 +16,19 @@ export { track }
try {
(function(l,e,a,p) {
// @ts-expect-error
// @ts-expect-error Sprig doesn't yet have a native typescript snippet
if (window.Sprig) return
// @ts-expect-error
window.Sprig = function(){S._queue.push(arguments)}
// @ts-expect-error
// @ts-expect-error Sprig doesn't yet have a native typescript snippet
window.Sprig = function(...args){S._queue.push(args)}
// @ts-expect-error Sprig doesn't yet have a native typescript snippet
var S = window.Sprig;S.appId = a;S._queue = [];window.UserLeap=S
// @ts-expect-error
// @ts-expect-error Sprig doesn't yet have a native typescript snippet
a=l.createElement('script')
// @ts-expect-error
// @ts-expect-error Sprig doesn't yet have a native typescript snippet
a.async=1;a.src=e+'?id='+S.appId
// @ts-expect-error
// @ts-expect-error Sprig doesn't yet have a native typescript snippet
p=l.getElementsByTagName('script')[0]
// @ts-expect-error
// @ts-expect-error Sprig doesn't yet have a native typescript snippet
p.parentNode.insertBefore(a, p)
})(document, 'https://cdn.sprig.com/shim.js', ENV_CONFIG.sprigEnvironmentId)
} catch (error) {