mirror of
https://github.com/owncast/owncast.git
synced 2024-11-24 13:50:06 +03:00
Save author name on send
This commit is contained in:
parent
90e7e9082b
commit
f6153c983f
1 changed files with 1 additions and 0 deletions
|
@ -24,6 +24,7 @@ function setupApp() {
|
||||||
methods: {
|
methods: {
|
||||||
submitChatForm: function (e) {
|
submitChatForm: function (e) {
|
||||||
const message = new Message(this.message)
|
const message = new Message(this.message)
|
||||||
|
localStorage.author = message.author
|
||||||
const messageJSON = JSON.stringify(message)
|
const messageJSON = JSON.stringify(message)
|
||||||
window.ws.send(messageJSON)
|
window.ws.send(messageJSON)
|
||||||
e.preventDefault()
|
e.preventDefault()
|
||||||
|
|
Loading…
Reference in a new issue