Save author name on send

This commit is contained in:
Gabe Kangas 2020-06-02 14:27:11 -07:00
parent 90e7e9082b
commit f6153c983f

View File

@ -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()