Skip to content

Commit

Permalink
fix form
Browse files Browse the repository at this point in the history
  • Loading branch information
JakeSCahill committed Apr 26, 2023
1 parent e33671a commit 4b43bb2
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/partials/form-404.hbs
Original file line number Diff line number Diff line change
Expand Up @@ -27,9 +27,9 @@ fetch("/", {
console.error('Form submission error:', error)
})
}
form.addEventListener('submit', handleSubmit)
window.addEventListener("DOMContentLoaded", (event) => {
const form = document.getElementById('notfound');
form.addEventListener('submit', handleSubmit)
var url = document.getElementById('url');
var date = document.getElementById('date');
url.value = window.location.href;
Expand Down
2 changes: 1 addition & 1 deletion src/partials/head-styles.hbs
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
} else {
document.documentElement.removeAttribute('data-theme')
}
}(localStorage && localStorage.getItem('theme') || (matchMedia('(prefers-color-scheme: dark)')) && localStorage.setItem('theme', 'dark'))
}(localStorage && localStorage.getItem('theme') || (matchMedia('(prefers-color-scheme: dark)')) && 'dark')
</script>
<link rel="stylesheet" href="{{{uiRootPath}}}/css/site.css">
<link rel="stylesheet" href="{{{uiRootPath}}}/css/vendor/tabs.css">
Expand Down

0 comments on commit 4b43bb2

Please sign in to comment.