Skip to content

Commit

Permalink
Get rid of the amplitude error_encountered for ResizeObserver undefin…
Browse files Browse the repository at this point in the history
…ed (#167)

We handle it gracefully enough and removing this might give us some breathing room in Amplitude
(we're close to the limits of what we can send in our free account)
  • Loading branch information
canadianveggie authored Sep 27, 2024
1 parent 711f47e commit a817043
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions index.html
Original file line number Diff line number Diff line change
Expand Up @@ -1349,9 +1349,7 @@ <h2>Sharing theme</h2>

function initScalingFontSize() {
if ("ResizeObserver" in window === false) {
amplitude.getInstance().logEvent("error_encountered", {
message: "ResizeObserver not supported",
});
// Old browser without a ResizeObserver, leave font size as defaults
return;
}

Expand Down

0 comments on commit a817043

Please sign in to comment.