diff --git a/app.js b/app.js index 632538f..e32883f 100644 --- a/app.js +++ b/app.js @@ -65,6 +65,10 @@ let kara = new Vue({ document.getElementById('chatinput').focus(); document.title = this.name; + setInterval(() => { + this.getReactions(); + }, 15000); + this.scrollDown(); }, methods: { @@ -924,6 +928,8 @@ let kara = new Vue({ let Kara = this; axios.get('/reactions/get').then((response) => { + Kara.reactions = []; + response.data.forEach((reaction) => { Kara.reactions.push(JSON.parse(reaction.reaction)); });