Skip to content

Commit 63b4b98

Browse files
committed
feat: Turns throw error into console.error
1 parent c825624 commit 63b4b98

File tree

1 file changed

+3
-4
lines changed

1 file changed

+3
-4
lines changed

src/core/features/google-analytics-instance-sharing.js

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -4,10 +4,9 @@ const setupGoogleAnalyticsInstanceSharingFeature = (iframeRef, embedId) => {
44
const gaObject = window[window.GoogleAnalyticsObject]
55

66
if (gaObject === undefined || gaObject === null) {
7-
throw new Error(
8-
`Whoops! You enabled the shareGoogleAnalyticsInstance feature but the google analytics object has not been found.
9-
Make sure to include Google Analytics Javascript code before the Typeform Embed Javascript code in your page. `
10-
)
7+
// eslint-disable-next-line no-console
8+
console.error(`Whoops! You enabled the shareGoogleAnalyticsInstance feature but the google analytics object has not been found.
9+
Make sure to include Google Analytics Javascript code before the Typeform Embed Javascript code in your page.`)
1110
}
1211

1312
const sendGaIdMessage = (gaClientId) => {

0 commit comments

Comments
 (0)