Skip to content

Commit

Permalink
unshift restored messages
Browse files Browse the repository at this point in the history
  • Loading branch information
pi0 committed Feb 27, 2024
1 parent 8259b32 commit 4866f0a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion app.vue
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ const store = reactive({
const log = (user: string, ...args: string[]) => {
console.log("[ws]", user, ...args);
store.messages.push({
store.messages.unshift({
id: Math.random(),
message: args.join(" "),
user: user,
Expand Down

0 comments on commit 4866f0a

Please sign in to comment.