Fixed e2e setup not working when entering backup key

This commit is contained in:
Marc Ole Bulling
2024-12-14 23:22:30 +01:00
parent 53d27c2889
commit 103fc49f8e

View File

@@ -46,13 +46,8 @@
}
function clearKeys() {
localStorage.removeItem("e2ekey");
}
function newKey() {
clearKeys();
localStorage.removeItem("e2ekey");
let key;
try {
key = GokapiE2EGetNewCipher(true);
@@ -107,7 +102,7 @@
<script>
function saveKey() {
clearKeys();
localStorage.removeItem("e2ekey");
let key = document.getElementById("password").value;
localStorage.setItem("e2ekey", key);