Skip to content

Commit

Permalink
really fixed github page
Browse files Browse the repository at this point in the history
  • Loading branch information
AUTplayed authored May 15, 2019
1 parent 3cd2e44 commit 5392697
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion ldf.js
Original file line number Diff line number Diff line change
Expand Up @@ -74,7 +74,7 @@ var ldf = {
var className = a.className;
var href = a.href;
if (className.includes("ldfignore")) return;
if (className.includes("ldfinclude") || (href && (href.includes(location.href.split("#")[0]) || href == "/") && !href.split("/").pop().match(/\.(?!html)/))) {
if (className.includes("ldfinclude") || (href && (href.includes(location.href.split("#")[0]) || a.getAttribute("href") == "/") && !href.split("/").pop().match(/\.(?!html)/))) {
a.removeEventListener("click", ldf.helpers.listener);
a.addEventListener("click", ldf.helpers.listener);
}
Expand Down

0 comments on commit 5392697

Please sign in to comment.