lint compliance

pull/1/head
yflory 5 years ago
parent 50b897ee2e
commit ea65647d44

@ -383,7 +383,7 @@ Version 1
return '/' + type + '/#' + hash;
};
Hash.hrefToHref = function (href) {
var parsed = parsedPadUrl(href);
var parsed = Hash.parsePadUrl(href);
return parsed.hash;
};

@ -1037,6 +1037,10 @@ define([
var href = data.href || data.roHref;
var parsed = Hash.parsePadUrl(href);
var secret = Hash.getSecrets(parsed.type, parsed.hash, data.password);
if (isRo && secret.keys && secret.keys.editKeyStr) {
delete secret.keys.editKeyStr;
delete secret.key;
}
var hash = Hash.getHiddenHashFromKeys(parsed.type, secret);
var hiddenHref = Hash.hashToHref(hash, parsed.type);
// XXX hidden hash: use settings

Loading…
Cancel
Save