mirror of
https://github.com/thelounge/thelounge
synced 2024-11-23 12:33:07 +00:00
11 lines
281 B
JavaScript
11 lines
281 B
JavaScript
"use strict";
|
|
|
|
const $ = require("jquery");
|
|
const socket = require("../socket");
|
|
|
|
socket.on("open", function(id) {
|
|
// Another client opened the channel, clear the unread counter
|
|
$("#sidebar").find(".chan[data-id='" + id + "'] .badge")
|
|
.removeClass("highlight")
|
|
.empty();
|
|
});
|