From da396b65286fc9eebdf0495d5dcb4f217b596447 Mon Sep 17 00:00:00 2001 From: yflory Date: Mon, 11 Jun 2018 15:40:36 +0200 Subject: [PATCH] Remove XXX --- www/common/sframe-common.js | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/www/common/sframe-common.js b/www/common/sframe-common.js index 572fe5f4a..89cc16554 100644 --- a/www/common/sframe-common.js +++ b/www/common/sframe-common.js @@ -112,11 +112,9 @@ define([ var origin = ctx.metadataMgr.getPrivateData().origin; return ''; }; - funcs.getMediatagFromHref = function (href) { - // XXX: Should only be used with the current href + funcs.getMediatagFromHref = function () { var data = ctx.metadataMgr.getPrivateData(); - var parsed = Hash.parsePadUrl(href); - var secret = Hash.getSecrets('file', parsed.hash, data.password); + var secret = Hash.getSecrets('file', data.availableHashes.fileHash, data.password); if (secret.keys && secret.channel) { var key = Hash.encodeBase64(secret.keys && secret.keys.cryptKey); var hexFileName = secret.channel;