From c1a2833dd8ca15ddb1bf0bfa67301afcfb7faa9b Mon Sep 17 00:00:00 2001 From: Mystikfluu Date: Tue, 4 Oct 2022 21:05:48 +0200 Subject: [PATCH] function name change "postMessage" -> "postMsg" --- js/posts.js | 6 +++++- views/posts.html | 2 +- 2 files changed, 6 insertions(+), 2 deletions(-) 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 @@

- +