From e20c5c4d885bcffa4381aa2fd4297f565473c713 Mon Sep 17 00:00:00 2001 From: AUTplayed Date: Sat, 11 May 2019 21:46:50 +0200 Subject: [PATCH] fixed github pages home --- ldf.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ldf.js b/ldf.js index 04e9aac..073ad38 100644 --- a/ldf.js +++ b/ldf.js @@ -71,7 +71,7 @@ var ldf = { }, updatePageLinks: function () { document.querySelectorAll("a").forEach(function (a) { - if (a.href && a.href.includes(location.href.split("#")[0])) { + if (a.href && (a.href.includes(location.href.split("#")[0]) || a.href == "/")) { a.removeEventListener("click", ldf.helpers.listener); a.addEventListener("click", ldf.helpers.listener); }