diff --git a/javascript/insert.js b/javascript/insert.js index 6cd55db..dd107a7 100644 --- a/javascript/insert.js +++ b/javascript/insert.js @@ -29,13 +29,10 @@ function loadContent(pageName) { function insert(e) { //get the name of the page after the # in the url -// var nameCompare = location.hash.slice(1); var pageName = e.target.hash.slice(1); - if (!document.getElementById("pageScript").src.includes(pageName)) { - titleColor(e); - loadContent(pageName); - }; + titleColor(e); + loadContent(pageName); } clickAction();