Skip to content

Commit

Permalink
fix: check secondary string in google topics realated api failure
Browse files Browse the repository at this point in the history
  • Loading branch information
mcstover authored and emuvente committed Sep 18, 2023
1 parent db64300 commit 9bd843d
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/main.js
Original file line number Diff line number Diff line change
Expand Up @@ -84,7 +84,8 @@ export default function createApp({
// Skip sending failed to fetch error caused by unhandled promise rejection in google ads
// Sentry Event Link: https://kiva.sentry.io/issues/4413252219/events/726c65f507684f43b748e913d4793518/
// This url is unreachable: https://pagead2.googlesyndication.com/pagead/buyside_topics/set/
if (eventAsString.indexOf('Failed to fetch') !== -1) {
if (eventAsString.indexOf('Failed to fetch') !== -1
&& eventAsString.indexOf('pagead') !== -1) {
return false;
}
// Skip sending failed loads of pX
Expand Down

0 comments on commit 9bd843d

Please sign in to comment.