Merged in fix/sentry-error (pull request #1224)
fix: validate function before executing * fix: validate function before executing
This commit is contained in:
@@ -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>
|
||||
|
||||
Reference in New Issue
Block a user