Merged in fix/sentry-error (pull request #1224)

fix: validate function before executing

* fix: validate function before executing
This commit is contained in:
Linus Flood
2025-01-28 11:45:34 +00:00
parent 444e2d4bcb
commit 4247e37667

View File

@@ -66,7 +66,9 @@ export default async function RootLayout({
<CookieBotConsent />
</ServerIntlProvider>
<Script id="page-tracking">{`
typeof _satellite !== "undefined" && _satellite.pageBottom();
if (typeof _satellite !== "undefined" && typeof _satellite.pageBottom === "function") {
_satellite.pageBottom();
}
`}</Script>
</body>
</html>