Fix fileHost in the file app

pull/1/head
yflory 5 years ago
parent 32c1ab842e
commit e2ff6c7c30

@ -59,6 +59,7 @@ define([
var secret;
var metadataMgr = common.getMetadataMgr();
var priv = metadataMgr.getPrivateData();
var fileHost = priv.fileHost || priv.origin;
if (!priv.filehash) {
uploadMode = true;
@ -88,7 +89,7 @@ define([
if (!uploadMode) {
var hexFileName = secret.channel;
var src = Hash.getBlobPathFromHex(hexFileName);
var src = fileHost + Hash.getBlobPathFromHex(hexFileName);
var key = secret.keys && secret.keys.cryptKey;
var cryptKey = Nacl.util.encodeBase64(key);

Loading…
Cancel
Save