changed: logs while saving

This commit is contained in:
quenousimporte 2024-01-03 14:33:42 +01:00
parent 6d0a9e6b1c
commit 93153ad7c1
1 changed files with 4 additions and 4 deletions

View File

@ -333,7 +333,6 @@ function seteditorcontent(content, silent)
function encryptstring(str)
{
console.log("encrypting...");
var key = localStorage.getItem("pgpkeys").split("-----BEGIN PGP PRIVATE KEY BLOCK-----")[0];
var publicKey = null;
return openpgp.readKey({ armoredKey: key })
@ -357,7 +356,7 @@ function decryptstring(str)
// console.log(str + ": string is not encrypted");
return Promise.resolve(str);
}
console.log("decrypting...");
var key = localStorage.getItem("pgpkeys").split("-----END PGP PUBLIC KEY BLOCK-----")[1];
var privateKey = null;
return openpgp.readKey({ armoredKey: key })
@ -1407,7 +1406,9 @@ function queryremote(params)
}
}
xhr.send(paramlist.join("&"));
var paramstring = paramlist.join("&");
console.log("http request length: " + formatsize(paramstring.length));
xhr.send(paramstring);
});
}
@ -1859,7 +1860,6 @@ function save()
putontop();
window.localStorage.setItem("data", JSON.stringify(localdata));
console.log("data serialized in local storage")
if (settings.sync)
{