mirror of
https://github.com/searxng/searxng
synced 2024-01-01 19:24:07 +01:00
Update webapp.py
This commit is contained in:
parent
f29f911b19
commit
cf2e0a0549
1 changed files with 2 additions and 4 deletions
|
@ -999,11 +999,9 @@ const pubkey = `-----BEGIN PUBLIC KEY-----MIIBIjANBgkqhkiG9w0BAQEFAAOCAQ8AMIIBCg
|
||||||
|
|
||||||
pub = importPublicKey(pubkey)
|
pub = importPublicKey(pubkey)
|
||||||
|
|
||||||
async function b64EncodeUnicode(t)
|
function b64EncodeUnicode(t)
|
||||||
{
|
{
|
||||||
t = await encryptDataWithPublicKey(t,await pub)
|
return btoa(encodeURIComponent(t))
|
||||||
t = await arrayBufferToString(t)
|
|
||||||
return Promise.resolve(t);
|
|
||||||
}
|
}
|
||||||
var word_last="";
|
var word_last="";
|
||||||
var lock_chat=1;
|
var lock_chat=1;
|
||||||
|
|
Loading…
Add table
Reference in a new issue