aboutsummaryrefslogtreecommitdiff
path: root/juick-www/src/main
diff options
context:
space:
mode:
authorGravatar makc2017-09-28 15:05:51 +0200
committerGravatar makc2017-09-28 15:05:51 +0200
commitaeda7039d626e791b6f86bcb8778a781b1a72848 (patch)
treeae3d3a849416cb4c9a8932a2c345d5a9481186d8 /juick-www/src/main
parent751b2a9b0fc523d17c9f7a410fadcc82eaaa1fb7 (diff)
fix js exception when logged out
Diffstat (limited to 'juick-www/src/main')
-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');