mirror of
https://github.com/thelounge/thelounge
synced 2024-11-26 14:00:21 +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);
|
|
});
|