From f6153c983f862f92515b4c76fb9f07aeefe004bd Mon Sep 17 00:00:00 2001 From: Gabe Kangas Date: Tue, 2 Jun 2020 14:27:11 -0700 Subject: [PATCH] Save author name on send --- webroot/js/app.js | 1 + 1 file changed, 1 insertion(+) diff --git a/webroot/js/app.js b/webroot/js/app.js index 08d2cdcc2..3e2c3b772 100644 --- a/webroot/js/app.js +++ b/webroot/js/app.js @@ -24,6 +24,7 @@ function setupApp() { methods: { submitChatForm: function (e) { const message = new Message(this.message) + localStorage.author = message.author const messageJSON = JSON.stringify(message) window.ws.send(messageJSON) e.preventDefault()