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(Utils): Use instanceof in deepCompare instead of the constructor name #398

Merged
merged 1 commit into from
May 6, 2023

Conversation

absidue
Copy link
Collaborator

@absidue absidue commented May 6, 2023

As we can't rely on the Text class still being called Text at runtime (e.g. in FreeTube as webpack mangles names to reduce the bundle size), we should use instanceof instead of checking the name of the class, which will work even if the class was renamed.

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

Successfully merging this pull request may close these issues.

2 participants