diff --git a/www/common/cryptpad-common.js b/www/common/cryptpad-common.js index a1daa8b17..73b51e8b3 100644 --- a/www/common/cryptpad-common.js +++ b/www/common/cryptpad-common.js @@ -84,6 +84,7 @@ define([ common.getEditHashFromKeys = Hash.getEditHashFromKeys; common.getViewHashFromKeys = Hash.getViewHashFromKeys; + common.getFileHashFromKeys = Hash.getFileHashFromKeys; common.getSecrets = Hash.getSecrets; common.getHashes = Hash.getHashes; common.createChannelId = Hash.createChannelId; diff --git a/www/file/main.js b/www/file/main.js index ffb143b73..66e0f6c25 100644 --- a/www/file/main.js +++ b/www/file/main.js @@ -71,7 +71,7 @@ define([ console.log("encrypted blob is now available as %s", uri); var b64Key = Nacl.util.encodeBase64(key); - window.location.hash = Cryptpad.getFileHashFromKeys(id, b64key); + window.location.hash = Cryptpad.getFileHashFromKeys(id, b64Key); $form.hide();