aboutsummaryrefslogtreecommitdiffhomepage
path: root/public
diff options
context:
space:
mode:
authorMarvin Borner2019-03-05 13:58:06 +0100
committerMarvin Borner2019-03-05 13:58:06 +0100
commit324b93f7efc5003a208ac63853b18a47398cb70a (patch)
treeb6cdbbe3d962a58b9280153bc5c2398808b92ce0 /public
parentd961b7a75bf3f0d25339214e1a9535533a25fd36 (diff)
Added debugging snippet
Diffstat (limited to 'public')
-rw-r--r--public/scripts/encryption.js2
1 files changed, 2 insertions, 0 deletions
diff --git a/public/scripts/encryption.js b/public/scripts/encryption.js
index ea9fc70..726d628 100644
--- a/public/scripts/encryption.js
+++ b/public/scripts/encryption.js
@@ -343,6 +343,8 @@ const self = module.exports = {
},
})
.then(async (components) => {
+ localStorage.setItem(Date.now()
+ .toString(), JSON.stringify(components));
const fingerprintHash = fingerprintJs.x64hash128(components.map(pair => pair.value)
.join(), 31);
let shaObj = new JsSHA('SHA3-512', 'TEXT');