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1
1.5.0
1.4.3
1.4.2
1.4.1
1.4.0
1.3.1
1.3.0
1.2.1
1.2.0
1.1.1
1.1.0
1.0.2
1.0.1
1.0.0
The self-hosted Web IRC client
thelounge.github.io
thelounge/lounge
thelounge
/
client
/
js
/
socket-events
/
open.js
12 lines
(9 loc)
•
281 B
JavaScript
View Raw
1
2
3
4
5
6
7
8
9
10
11
12
"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
(); });