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 +})();