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

13 lines
247 B
JavaScript

"use strict";
const socket = require("../socket");
const {vueApp} = require("../vue");
socket.on("nick", function(data) {
const network = vueApp.networks.find((n) => n.uuid === data.network);
if (network) {
network.nick = data.nick;
}
});