aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--index.ts4
1 files changed, 4 insertions, 0 deletions
diff --git a/index.ts b/index.ts
index e1feaec..e48401f 100644
--- a/index.ts
+++ b/index.ts
@@ -25,6 +25,10 @@ function changePage(href: string) {
window.history.pushState({}, "", href)
document.title = doc.title
document.body = doc.body
+ document.head.querySelectorAll("style").forEach(e => document.head.removeChild(e))
+ doc.head.querySelectorAll("style").forEach(e => {
+ document.head.appendChild(e)
+ })
setupEvents()
scrollTo({
top: 0,