Merged in fix/remove-on-error (pull request #2142)
fix: revert onError on the Script component * fix: revert onError on the Script component
This commit is contained in:
@@ -1,4 +1,3 @@
|
||||
import * as Sentry from "@sentry/nextjs"
|
||||
import Script from "next/script"
|
||||
|
||||
import { env } from "@/env/server"
|
||||
@@ -9,10 +8,6 @@ export default function AdobeSDKScript() {
|
||||
data-cookieconsent="statistics"
|
||||
src={env.ADOBE_SDK_SCRIPT_SRC}
|
||||
async
|
||||
onError={(e) => {
|
||||
console.error("Failed to load AdobeSDK script", e)
|
||||
Sentry.captureException(e)
|
||||
}}
|
||||
/>
|
||||
) : null
|
||||
}
|
||||
|
||||
@@ -1,4 +1,3 @@
|
||||
import * as Sentry from "@sentry/nextjs"
|
||||
import Script from "next/script"
|
||||
|
||||
import { env } from "@/env/server"
|
||||
@@ -27,10 +26,6 @@ export default function GTMScript() {
|
||||
`,
|
||||
}}
|
||||
async
|
||||
onError={(e) => {
|
||||
console.error("Failed to load GTM script", e)
|
||||
Sentry.captureException(e)
|
||||
}}
|
||||
/>
|
||||
) : null
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user