30f40ee448
Fixes #1357
12 lines
250 B
JavaScript
12 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);
|
|
});
|