From 5c8586f8a32c4c0f50157145075716fca79bee11 Mon Sep 17 00:00:00 2001 From: yflory Date: Wed, 10 May 2017 15:00:05 +0200 Subject: [PATCH] Fix typo in file upload --- www/common/cryptpad-common.js | 1 + www/file/main.js | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) 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();