diff options
| -rw-r--r-- | index.ts | 4 |
1 files changed, 4 insertions, 0 deletions
@@ -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, |
