aboutsummaryrefslogtreecommitdiff
path: root/juick-www/src
diff options
context:
space:
mode:
Diffstat (limited to 'juick-www/src')
-rw-r--r--juick-www/src/main/static/scripts.js2
1 files changed, 1 insertions, 1 deletions
diff --git a/juick-www/src/main/static/scripts.js b/juick-www/src/main/static/scripts.js
index c6a960f0..8cee5b87 100644
--- a/juick-www/src/main/static/scripts.js
+++ b/juick-www/src/main/static/scripts.js
@@ -822,7 +822,7 @@ ready(function () {
}
var post = document.getElementById('post');
- post.addEventListener('click', (e) => {
+ if (post) post.addEventListener('click', (e) => {
openPostDialog();
getTags();
var newMessageBlock = document.getElementById('newmessage');