mirror of
https://github.com/thelounge/thelounge
synced 2024-12-30 06:13:07 +00:00
14 lines
319 B
JavaScript
14 lines
319 B
JavaScript
"use strict";
|
|
|
|
const $ = require("jquery");
|
|
const socket = require("../socket");
|
|
|
|
socket.on("nick", function(data) {
|
|
const id = data.network;
|
|
const nick = data.nick;
|
|
const network = $(`#sidebar .network[data-uuid="${id}"]`).data("nick", nick);
|
|
|
|
if (network.find(".active").length) {
|
|
$("#nick").text(nick);
|
|
}
|
|
});
|