Save author name on send
This commit is contained in:
parent
90e7e9082b
commit
f6153c983f
@ -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()
|
||||
|
Loading…
Reference in New Issue
Block a user