|
|
@ -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);
|
|
|
|