Skip to content

Commit

Permalink
Update script.js
Browse files Browse the repository at this point in the history
  • Loading branch information
AlexSchoolOH authored Apr 24, 2024
1 parent 84881e5 commit bdf1669
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions script.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@

const searchParams = new URLSearchParams(window.location.search);

const page = searchParams.get("page");
const page = searchParams.get("page") || "main";

fetch(`${docSource}${page}.html`).then(Response => {Response.text().then((dat) => {
document.getElementById("documentContents").innerHTML = dat;
Expand All @@ -23,4 +23,4 @@
}
localStorage.setItem("theme", document.body.className)
}
})();
})();

0 comments on commit bdf1669

Please sign in to comment.