hardlounge/client/js/socket-events/nick.ts

11 lines
211 B
TypeScript
Raw Permalink Normal View History

2019-11-16 17:24:03 +00:00
import socket from "../socket";
import {store} from "../store";
2017-05-18 20:08:54 +00:00
socket.on("nick", function (data) {
const network = store.getters.findNetwork(data.network);
if (network) {
network.nick = data.nick;
2017-05-18 20:08:54 +00:00
}
});