mirror of
https://github.com/Forceu/Gokapi.git
synced 2025-12-30 21:39:36 -06:00
Fixed e2e setup not working when entering backup key
This commit is contained in:
@@ -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);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user