Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix: TypeError: 'requestAnimationFrame' called on an object that does not implement interface Window. #322

Merged
merged 1 commit into from
Nov 13, 2024

Conversation

ph0ngp
Copy link
Contributor

@ph0ngp ph0ngp commented Nov 13, 2024

On Firefox 132.0.1 (aarch64) on macOS, I get this error:

TypeError: 'requestAnimationFrame' called on an object that does not implement interface Window. (from Mutation.ts line 134)
And the same error for cancelAnimationFrame

I don't get that error on Safari or Chrome on the same machine.

Binding them to the global object fixes that error for me.

@codecov-commenter
Copy link

codecov-commenter commented Nov 13, 2024

⚠️ Please install the 'codecov app svg image' to ensure uploads and comments are reliably processed by Codecov.

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 96.36%. Comparing base (22cafa6) to head (256ea75).
Report is 1 commits behind head on master.

❗ Your organization needs to install the Codecov GitHub app to enable full functionality.

Additional details and impacted files
@@           Coverage Diff           @@
##           master     #322   +/-   ##
=======================================
  Coverage   96.36%   96.36%           
=======================================
  Files          32       32           
  Lines        1156     1156           
  Branches      216      216           
=======================================
  Hits         1114     1114           
  Misses         38       38           
  Partials        4        4           
Flag Coverage Δ
?

Flags with carried forward coverage won't be shown. Click here to find out more.

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

Copy link
Owner

@chanind chanind left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks reasonable! Thanks for finding this

@chanind chanind merged commit 7850090 into chanind:master Nov 13, 2024
1 check passed
@chanind
Copy link
Owner

chanind commented Nov 13, 2024

🎉 This PR is included in version 3.7.2 🎉

The release is available on:

Your semantic-release bot 📦🚀

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants