Fix explore link being re-added on pjax update

This commit is contained in:
Shadowfacts 2016-09-09 20:44:06 -04:00
parent 6978c921aa
commit af759cbbae
No known key found for this signature in database
GPG Key ID: F802198A7D7F309D
1 changed files with 1 additions and 1 deletions

View File

@ -47,7 +47,7 @@ let repoUrl = $("div.repohead-details-container > h1.public > strong[itemprop=na
if (!location.hostname.startsWith("gist")) {
let lastItem = $(".header-nav[role=navigation] > .header-nav-item:last");
if (lastItem.find("a.header-nav-link").text() != "Explore") {
if (lastItem.prev().find("a.header-nav-link").text() != "Explore") {
let exploreItem = $("<li></li>");
exploreItem.addClass("header-nav-item");
let exploreLink = $("<a></a>");