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鈥檒l occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix deprioritize-marketplace-link error in some instances #3919

Merged
merged 4 commits into from Jan 31, 2021
Merged

Fix deprioritize-marketplace-link error in some instances #3919

merged 4 commits into from Jan 31, 2021

Conversation

cheap-glitch
Copy link
Member

Thanks for contributing! 馃崉

  1. LINKED ISSUES: Fixes deprioritize-marketplace-link: Argument 1 ('target') to MutationObserver.observe must be an instance of Node聽#3898

  2. TEST URLS: Go to the PR list and do a few "hard refresh" (Ctrl-F5). This triggers the error almost every time for me.

I think #3898 was caused by awaitDomReady: false combined with the plain document.querySelector() in onProfileDropdownLoad(). Using elementReady seems to fix it.

Also set-default-repositories-type-to-sources is unaffected.

@yakov116 yakov116 added the bug label Jan 28, 2021
cheap-glitch and others added 3 commits January 29, 2021 15:20
Co-authored-by: Federico <me@fregante.com>
Copy link
Member

@fregante fregante left a comment

Choose a reason for hiding this comment

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

LGTM if it works

@fregante fregante changed the title Fix onProfileDropdownLoad() Fix deprioritize-marketplace-link error in some instances Jan 30, 2021
@fregante fregante merged commit cfd47cb into refined-github:main Jan 31, 2021
@fregante
Copy link
Member

woot woot for bugfixes!

@cheap-glitch cheap-glitch deleted the fix-on-profile-dropdown-load branch January 31, 2021 08:53
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Development

Successfully merging this pull request may close these issues.

deprioritize-marketplace-link: Argument 1 ('target') to MutationObserver.observe must be an instance of Node
3 participants