iteration 0
This commit is contained in:
parent
88873b3c0d
commit
e10017c859
|
@ -3,7 +3,7 @@ export type EnvConfig = {
|
||||||
firebaseConfig: FirebaseConfig
|
firebaseConfig: FirebaseConfig
|
||||||
amplitudeApiKey?: string
|
amplitudeApiKey?: string
|
||||||
twitchBotEndpoint?: string
|
twitchBotEndpoint?: string
|
||||||
sprigEnvironmentId: string
|
sprigEnvironmentId?: string
|
||||||
|
|
||||||
// IDs for v2 cloud functions -- find these by deploying a cloud function and
|
// IDs for v2 cloud functions -- find these by deploying a cloud function and
|
||||||
// examining the URL, https://[name]-[cloudRunId]-[cloudRunRegion].a.run.app
|
// examining the URL, https://[name]-[cloudRunId]-[cloudRunRegion].a.run.app
|
||||||
|
|
|
@ -16,19 +16,19 @@ export { track }
|
||||||
|
|
||||||
try {
|
try {
|
||||||
(function(l,e,a,p) {
|
(function(l,e,a,p) {
|
||||||
// @ts-expect-error
|
// @ts-expect-error Sprig doesn't yet have a native typescript snippet
|
||||||
if (window.Sprig) return
|
if (window.Sprig) return
|
||||||
// @ts-expect-error
|
// @ts-expect-error Sprig doesn't yet have a native typescript snippet
|
||||||
window.Sprig = function(){S._queue.push(arguments)}
|
window.Sprig = function(...args){S._queue.push(args)}
|
||||||
// @ts-expect-error
|
// @ts-expect-error Sprig doesn't yet have a native typescript snippet
|
||||||
var S = window.Sprig;S.appId = a;S._queue = [];window.UserLeap=S
|
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')
|
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
|
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]
|
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)
|
p.parentNode.insertBefore(a, p)
|
||||||
})(document, 'https://cdn.sprig.com/shim.js', ENV_CONFIG.sprigEnvironmentId)
|
})(document, 'https://cdn.sprig.com/shim.js', ENV_CONFIG.sprigEnvironmentId)
|
||||||
} catch (error) {
|
} catch (error) {
|
||||||
|
|
Loading…
Reference in New Issue
Block a user