diff options
author | 2017-09-28 15:05:51 +0200 | |
---|---|---|
committer | 2017-09-28 15:05:51 +0200 | |
commit | aeda7039d626e791b6f86bcb8778a781b1a72848 (patch) | |
tree | ae3d3a849416cb4c9a8932a2c345d5a9481186d8 /juick-www/src/main/static | |
parent | 751b2a9b0fc523d17c9f7a410fadcc82eaaa1fb7 (diff) |
fix js exception when logged out
Diffstat (limited to 'juick-www/src/main/static')
-rw-r--r-- | juick-www/src/main/static/scripts.js | 2 |
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'); |