hardlounge/client/js/socket-events/sessions_list.js

10 lines
204 B
JavaScript
Raw Normal View History

2017-08-15 09:44:29 +00:00
"use strict";
2019-11-16 17:24:03 +00:00
import socket from "../socket";
import store from "../store";
2017-08-15 09:44:29 +00:00
socket.on("sessions:list", function(data) {
data.sort((a, b) => b.lastUse - a.lastUse);
store.commit("sessions", data);
2017-08-15 09:44:29 +00:00
});