mirror of
https://github.com/moparisthebest/mail
synced 2024-11-30 04:42:15 -05:00
fix test
This commit is contained in:
parent
3700e211ec
commit
887e432e5b
@ -159,11 +159,10 @@ define(function(require) {
|
|||||||
receiverKeys[i] = openpgp.read_publicKey(receiverKeys[i])[0];
|
receiverKeys[i] = openpgp.read_publicKey(receiverKeys[i])[0];
|
||||||
}
|
}
|
||||||
|
|
||||||
|
try {
|
||||||
// format: \n -> \r\n
|
// format: \n -> \r\n
|
||||||
plaintext = plaintext.replace(/\r\n/g, '\n').replace(/[\t ]+\n/g, "\n").replace(/\n/g, '\r\n');
|
plaintext = plaintext.replace(/\r\n/g, '\n').replace(/[\t ]+\n/g, "\n").replace(/\n/g, '\r\n');
|
||||||
|
|
||||||
// encrypt and sign the plaintext
|
// encrypt and sign the plaintext
|
||||||
try {
|
|
||||||
ct = openpgp.write_signed_and_encrypted_message(privateKey, receiverKeys, plaintext);
|
ct = openpgp.write_signed_and_encrypted_message(privateKey, receiverKeys, plaintext);
|
||||||
} catch (err) {
|
} catch (err) {
|
||||||
callback({
|
callback({
|
||||||
|
Loading…
Reference in New Issue
Block a user