summaryrefslogtreecommitdiff
path: root/static/main.js
diff options
context:
space:
mode:
Diffstat (limited to 'static/main.js')
-rw-r--r--static/main.js2
1 files changed, 1 insertions, 1 deletions
diff --git a/static/main.js b/static/main.js
index 002a4fe..317bd18 100644
--- a/static/main.js
+++ b/static/main.js
@@ -24,7 +24,7 @@ document.addEventListener("DOMContentLoaded", () => {
[...d[q]("mark")].forEach(e => e.tabIndex = "-1");
// Trigger like button animation
- d.querySelector("#like-post").addEventListener("click", function() {
+ d.querySelector("#like-post")?.addEventListener("click", function() {
setTimeout(() => this[l].remove("like-anim"), 700);
this[l].add("like-anim");
this[l].add("liked");