question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Trending nav item is repeating in header

See original GitHub issue

image

Steps to reproduce:

  1. Go to https://github.com/sindresorhus/refined-github It’s added twice
  2. Click on a sub-repo navigation item - e.g. Issues tab.

This has been introduced relatively recently on master.

Issue Analytics

  • State:closed
  • Created 6 years ago
  • Comments:20 (16 by maintainers)

github_iconTop GitHub Comments

2reactions
fregantecommented, Jun 28, 2017

I’d rather not do that because it’d push the real problem under the rug, deprioritizing the issue. You don’t want an extension to run 10 times.

2reactions
buschescommented, Jun 28, 2017

An easy way to work around this is to add the same code we have for most other items we add to the dom and check for it’s existence before adding it. Doesn’t solve the root cause of why the extension is running twice, but if it’s an odd edge case, it may be worth the time savings of solving it the quick and easy way, especially since we use that pattern for everything else.

Read more comments on GitHub >

github_iconTop Results From Across the Web

why does my nav bar duplicate when navigating with .load()?
I have navigation bars in both the header and the footer of the page with 2 links each. Under that I have made...
Read more >
Duplicate header and navigation on home page
Hi i'm in the process of building a new site using generatepress and elementor and it's being going fine until i built a...
Read more >
Duplicate ID's created by navigation menu #8979 - GitHub
When we add a navigation menu with a mobile optimized version (dropdown) it will cause duplicated html ID's. SERanking will throw an error ......
Read more >
Inconsistent Repeating of a Table Header Row (Microsoft Word)
Sometimes when creating a table in Word, Dick cannot make the top row repeat across all pages containing the table.
Read more >
Are You Making These Common Website Navigation Mistakes?
A website's navigation has a huge impact on results. Here are 5 website navigation mistakes to avoid, from labels to drop-down menus.
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found