pull/1/head
yflory 8 years ago
parent 7f25c9a8e1
commit c2c04bd5d8

@ -105,8 +105,7 @@ define([
Title.updateTitle(title || Title.defaultTitle); Title.updateTitle(title || Title.defaultTitle);
var displayFile = function (ev) { var displayFile = function (ev) {
console.log(e); var $mt = $dlview.find('media-tag');
$mt = $dlview.find('media-tag');
var cryptKey = secret.keys && secret.keys.fileKeyStr; var cryptKey = secret.keys && secret.keys.fileKeyStr;
var hexFileName = Cryptpad.base64ToHex(secret.channel); var hexFileName = Cryptpad.base64ToHex(secret.channel);
$mt.attr('src', '/blob/' + hexFileName.slice(0,2) + '/' + hexFileName); $mt.attr('src', '/blob/' + hexFileName.slice(0,2) + '/' + hexFileName);

Loading…
Cancel
Save