diff --git a/www/common/cryptpad-common.js b/www/common/cryptpad-common.js index fdc212cec..882ae2656 100644 --- a/www/common/cryptpad-common.js +++ b/www/common/cryptpad-common.js @@ -185,6 +185,7 @@ define([ secret.key = Crypto.createEditCryptor().editKeyStr; } else { var hash = secretHash || window.location.hash.slice(1); + console.log(hash); if (hash.length === 0) { secret.keys = Crypto.createEditCryptor(); secret.key = Crypto.createEditCryptor().editKeyStr; diff --git a/www/file/main.js b/www/file/main.js index b54b9908a..3122070d3 100644 --- a/www/file/main.js +++ b/www/file/main.js @@ -19,7 +19,7 @@ define([ var $iframe = $('#pad-iframe').contents(); var ifrw = $('#pad-iframe')[0].contentWindow; - var hash = window.location.hash || localStorage.FS_hash; + var hash = window.location.hash.slice(1) || localStorage.FS_hash; var secret = Cryptpad.getSecrets(hash); var ROOT = "root";