fix: non-SPA fn defs (closes #154)

This commit is contained in:
Jacky Zhao 2022-07-01 11:02:42 -07:00
parent 0896814959
commit 8d7a7b712f
1 changed files with 5 additions and 2 deletions

View File

@ -127,8 +127,11 @@
navigate: (url) => (window.location.href = url),
prefetch: () => {},
}
init()
render()
window.addEventListener("DOMContentLoaded", () => {
init()
render()
})
</script>
{{end}}
</head>