2017-06-26 09:01:55 +00:00
|
|
|
"use strict";
|
|
|
|
|
|
|
|
const $ = require("jquery");
|
2017-07-06 06:16:01 +00:00
|
|
|
const renderPreview = require("../renderPreview");
|
2017-06-26 09:01:55 +00:00
|
|
|
const socket = require("../socket");
|
|
|
|
|
|
|
|
socket.on("msg:preview", function(data) {
|
|
|
|
const msg = $("#msg-" + data.id);
|
|
|
|
|
2017-07-06 06:16:01 +00:00
|
|
|
renderPreview(data.preview, msg);
|
2017-06-26 09:01:55 +00:00
|
|
|
});
|