From 5e3bbec82b3cc36059271faed20b338a437eaa83 Mon Sep 17 00:00:00 2001
From: "seer-by-sentry[bot]"
<157164994+seer-by-sentry[bot]@users.noreply.github.com>
Date: Wed, 14 Jan 2026 16:50:06 +0000
Subject: [PATCH] fix: Suppress Publift Fuse cross-origin errors
---
src/components/Gam.tsx | 61 +++++++++++++++++++++++++++++++++++++++---
1 file changed, 58 insertions(+), 3 deletions(-)
diff --git a/src/components/Gam.tsx b/src/components/Gam.tsx
index 1624fcd3d..1920903c2 100644
--- a/src/components/Gam.tsx
+++ b/src/components/Gam.tsx
@@ -37,16 +37,71 @@ declare global {
export function GamOnPageChange() {
if (typeof window === 'undefined' || !window.fusetag) return
- window.fusetag.que.push(function () {
- window.fusetag.pageInit()
- })
+ try {
+ window.fusetag.que.push(function () {
+ try {
+ window.fusetag.pageInit()
+ } catch (error) {
+ // Suppress cross-origin errors from Publift Fuse ad viewability measurement
+ // These can occur on iOS Safari due to strict Same-Origin Policy enforcement
+ console.debug('Error during fusetag.pageInit():', error)
+ }
+ })
+ } catch (error) {
+ // Suppress cross-origin errors from Publift Fuse ad viewability measurement
+ console.debug('Error calling fusetag.que.push():', error)
+ }
}
export const GamScripts = () => (
<>
+