Skip to content

Commit 222b11b

Browse files
committed
minor js
1 parent 4aee887 commit 222b11b

File tree

2 files changed

+4
-2
lines changed

2 files changed

+4
-2
lines changed

nimletter.nimble

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
# Package
22

3-
version = "0.6.9"
3+
version = "0.7.0"
44
author = "ThomasTJdev"
55
description = "Newsletter"
66
license = "AGPL v3"

src/html/optin.nimf

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,9 @@
2727
<script>
2828
document.addEventListener("DOMContentLoaded", function() {
2929
const buttonSubscribe = document.querySelector("#subscribeName");
30-
buttonSubscribe.focus();
30+
if (buttonSubscribe) {
31+
buttonSubscribe.focus();
32+
}
3133
});
3234
</script>
3335
</head>

0 commit comments

Comments
 (0)