diff --git a/www/common/drive-ui.js b/www/common/drive-ui.js index f8c6f7ec3..8f47d673f 100644 --- a/www/common/drive-ui.js +++ b/www/common/drive-ui.js @@ -1250,8 +1250,7 @@ define([ var secret = Hash.getSecrets(parsed.type, parsed.hash, data.password); var opts = {}; if (isRo) { opts.view = true; } - var auditorKey = parsed.hashData.auditorKey ? parsed.hashData.auditorKey : undefined; - var hash = Hash.getHiddenHashFromKeys(parsed.type, secret, opts, auditorKey); + var hash = Hash.getHiddenHashFromKeys(parsed.type, secret, opts, parsed.hashData.auditorKey); var hiddenHref = Hash.hashToHref(hash, parsed.type); common.openURL(Hash.getNewPadURL(hiddenHref, obj)); };