mirror of
https://github.com/thelounge/thelounge
synced 2024-12-18 08:23:09 +00:00
6d6b5cb2a9
Fixes #2011
12 lines
397 B
JavaScript
12 lines
397 B
JavaScript
"use strict";
|
|
|
|
const $ = require("jquery");
|
|
const socket = require("../socket");
|
|
const helpers_parse = require("../libs/handlebars/parse");
|
|
|
|
socket.on("topic", function(data) {
|
|
const topic = $("#chan-" + data.chan).find(".header .topic");
|
|
topic.html(helpers_parse(data.topic));
|
|
// .prop() is safe escape-wise but consider the capabilities of the attribute
|
|
topic.prop("title", data.topic);
|
|
});
|