Browse Source

Save author name on send

pull/5/head
Gabe Kangas 5 years ago
parent
commit
f6153c983f
  1. 1
      webroot/js/app.js

1
webroot/js/app.js

@ -24,6 +24,7 @@ function setupApp() { @@ -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…
Cancel
Save