Fix reference error

pull/1/head
yflory 5 years ago
parent 20111e8416
commit c29b7d3389

@ -99,6 +99,7 @@ define([
// No password for avatars // No password for avatars
var privateData = common.getMetadataMgr().getPrivateData(); var privateData = common.getMetadataMgr().getPrivateData();
var origin = privateData.fileHost || privateData.origin; var origin = privateData.fileHost || privateData.origin;
var parsed = Hash.parsePadUrl(href);
var secret = Hash.getSecrets('file', parsed.hash); var secret = Hash.getSecrets('file', parsed.hash);
if (secret.keys && secret.channel) { if (secret.keys && secret.channel) {
var hexFileName = secret.channel; var hexFileName = secret.channel;

Loading…
Cancel
Save