diff --git a/js/posts.js b/js/posts.js index a59694f..46ac7d0 100644 --- a/js/posts.js +++ b/js/posts.js @@ -61,7 +61,11 @@ socket.addEventListener("open",()=> { var cd = true //inversed "cooldown" - function postMessage() { +/* + Tell the api to create a new post with the given information + previously called "postMessage" +*/ + function postMsg() { let msg = getById("post-text").value let len = msg.length if(len==0){ diff --git a/views/posts.html b/views/posts.html index e808962..2c731d0 100644 --- a/views/posts.html +++ b/views/posts.html @@ -36,7 +36,7 @@

- +