aboutsummaryrefslogtreecommitdiff
path: root/index.ts
diff options
context:
space:
mode:
Diffstat (limited to 'index.ts')
-rw-r--r--index.ts5
1 files changed, 1 insertions, 4 deletions
diff --git a/index.ts b/index.ts
index 24951c2..c3f46b0 100644
--- a/index.ts
+++ b/index.ts
@@ -23,10 +23,7 @@ function changePage(href: string) {
const doc = new DOMParser().parseFromString(html, "text/html")
window.history.pushState({}, "", href)
document.title = doc.title
- const distMain = doc.querySelector("main")
- const currentMain = document.querySelector("main")
- if (distMain === null || currentMain === null) document.body = doc.body
- else currentMain.innerHTML = distMain.innerHTML
+ document.body = doc.body
setupEvents()
scrollTo({
top: 0,