Skip to content

Commit

Permalink
Fixed upload defaults being deleted when resetting e2e key
Browse files Browse the repository at this point in the history
  • Loading branch information
Forceu committed Dec 11, 2024
1 parent aaae185 commit ae1d333
Showing 1 changed file with 7 additions and 2 deletions.
9 changes: 7 additions & 2 deletions internal/webserver/web/templates/html_end2end.tmpl
Original file line number Diff line number Diff line change
Expand Up @@ -45,9 +45,14 @@
writer.close()

}

function clearKeys() {
localStorage.removeItem("e2ekey");
}


function newKey() {
localStorage.clear();
clearKeys();
let key;
try {
key = GokapiE2EGetNewCipher(true);
Expand Down Expand Up @@ -102,7 +107,7 @@

<script>
function saveKey() {
localStorage.clear();
clearKeys();
let key = document.getElementById("password").value;
localStorage.setItem("e2ekey", key);

Expand Down

0 comments on commit ae1d333

Please sign in to comment.