Removed redundant code

This commit is contained in:
Zuzanna 2025-05-30 12:46:55 +02:00
parent ee79add939
commit 12ce81b2bc

View File

@ -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));
};