mirror of
https://github.com/thelounge/thelounge
synced 2024-11-23 12:33:07 +00:00
30f40ee448
Fixes #1357
11 lines
250 B
JavaScript
11 lines
250 B
JavaScript
"use strict";
|
|
|
|
const $ = require("jquery");
|
|
const renderPreview = require("../renderPreview");
|
|
const socket = require("../socket");
|
|
|
|
socket.on("msg:preview", function(data) {
|
|
const msg = $("#msg-" + data.id);
|
|
|
|
renderPreview(data.preview, msg);
|
|
});
|