From bdf16699a9049eb3e45570a397a2ba2d77b9aeae Mon Sep 17 00:00:00 2001 From: AlexSchoolOH <71141838+AlexSchoolOH@users.noreply.github.com> Date: Wed, 24 Apr 2024 13:33:41 -0400 Subject: [PATCH] Update script.js --- script.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/script.js b/script.js index 1bd505e..f7e6c83 100644 --- a/script.js +++ b/script.js @@ -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; @@ -23,4 +23,4 @@ } localStorage.setItem("theme", document.body.className) } -})(); \ No newline at end of file +})();