mirror of
https://github.com/thelounge/thelounge
synced 2024-11-27 06:20:26 +00:00
9 lines
204 B
JavaScript
9 lines
204 B
JavaScript
"use strict";
|
|
|
|
import socket from "../socket";
|
|
import store from "../store";
|
|
|
|
socket.on("sessions:list", function(data) {
|
|
data.sort((a, b) => b.lastUse - a.lastUse);
|
|
store.commit("sessions", data);
|
|
});
|