thelounge/client/js/socket-events/nick.js

13 lines
247 B
JavaScript
Raw Normal View History

2017-05-18 20:08:54 +00:00
"use strict";
const socket = require("../socket");
const {vueApp} = require("../vue");
2017-05-18 20:08:54 +00:00
socket.on("nick", function(data) {
const network = vueApp.networks.find((n) => n.uuid === data.network);
if (network) {
network.nick = data.nick;
2017-05-18 20:08:54 +00:00
}
});