Tweak recently added encryption functions to not violate ECMASCRIPT3 syntax
| | |
| | | mailvelope.getKeyring(keyring).then(function(kr) { |
| | | ref.mailvelope_keyring = kr; |
| | | ref.mailvelope_init(action, kr); |
| | | }).catch(function(err) { |
| | | }, function(err) { |
| | | // attempt to create a new keyring for this app/user |
| | | mailvelope.createKeyring(keyring).then(function(kr) { |
| | | ref.mailvelope_keyring = kr; |
| | | ref.mailvelope_init(action, kr); |
| | | }).catch(function(err) { |
| | | }, function(err) { |
| | | console.error(err); |
| | | }); |
| | | }); |
| | |
| | | ref.remove_from_attachment_list(name); |
| | | }); |
| | | } |
| | | }).catch(function(err) { |
| | | }, function(err) { |
| | | console.error(err); |
| | | console.log(options); |
| | | }); |
| | |
| | | |
| | | form.submit(); |
| | | |
| | | }).catch(function(err) { |
| | | }, function(err) { |
| | | console.log(err); |
| | | }); // mailvelope_editor.encrypt() |
| | | |
| | | }).catch(function(err) { |
| | | }, function(err) { |
| | | console.error(err); |
| | | }); // mailvelope_keyring.validKeyForAddress(senders) |
| | | |
| | | }).catch(function(err) { |
| | | }, function(err) { |
| | | console.error(err); |
| | | }); // mailvelope_keyring.validKeyForAddress(recipients) |
| | | |
| | |
| | | $(selector).addClass('mailvelope').children().not('iframe').hide(); |
| | | ref.hide_message(msgid); |
| | | setTimeout(function() { $(window).resize(); }, 10); |
| | | }).catch(function(err) { |
| | | }, function(err) { |
| | | console.error(err); |
| | | ref.hide_message(msgid); |
| | | ref.display_message('Message decryption failed: ' + err.message, 'error') |
| | |
| | | if (missing_keys.length) { |
| | | ref.display_message(ref.get_label('nopubkeyfor').replace('$email', missing_keys.join(', ')), 'warning'); |
| | | } |
| | | }, function() { |
| | | }).fail(function() { |
| | | console.error('Pubkey lookup failed with', arguments); |
| | | ref.hide_message(lock); |
| | | ref.display_message('pubkeysearcherror', 'error'); |
| | |
| | | btn.closest('.key').fadeOut(); |
| | | ref.display_message(ref.get_label('keyimportsuccess').replace('$key', $key), 'confirmation'); |
| | | } |
| | | }).catch(function(err) { |
| | | }, function(err) { |
| | | console.log(err); |
| | | }); |
| | | }); |
| | |
| | | */ |
| | | var DEFAULT_KEYSERVERS = [ |
| | | "https://keys.fedoraproject.org/", |
| | | "https://keybase.io/", |
| | | "https://keybase.io/" |
| | | ]; |
| | | |
| | | /* |
| | |
| | | "expirationdate": null, |
| | | "revoked": false, |
| | | "disabled": false, |
| | | "expired": false, |
| | | "expired": false |
| | | }] |
| | | }; |
| | | |
| | |
| | | "expirationdate": null, |
| | | "revoked": false, |
| | | "disabled": false, |
| | | "expired": false, |
| | | "expired": false |
| | | }); |
| | | } |
| | | |
| | |
| | | "expirationdate": null, |
| | | "revoked": false, |
| | | "disabled": false, |
| | | "expired": false, |
| | | "expired": false |
| | | }); |
| | | } |
| | | |
| | |
| | | "expirationdate": null, |
| | | "revoked": false, |
| | | "disabled": false, |
| | | "expired": false, |
| | | "expired": false |
| | | }); |
| | | } |
| | | |
| | |
| | | "expirationdate": null, |
| | | "revoked": false, |
| | | "disabled": false, |
| | | "expired": false, |
| | | "expired": false |
| | | }); |
| | | } |
| | | |
| | |
| | | "expirationdate": null, |
| | | "revoked": false, |
| | | "disabled": false, |
| | | "expired": false, |
| | | "expired": false |
| | | }); |
| | | } |
| | | |
| | |
| | | "expirationdate": null, |
| | | "revoked": false, |
| | | "disabled": false, |
| | | "expired": false, |
| | | "expired": false |
| | | }); |
| | | } |
| | | |
| | |
| | | "expirationdate": null, |
| | | "revoked": false, |
| | | "disabled": false, |
| | | "expired": false, |
| | | "expired": false |
| | | }); |
| | | } |
| | | } |
| | |
| | | "revoked": vals[6].indexOf("r") !== -1, |
| | | "disabled": vals[6].indexOf("d") !== -1, |
| | | "expired": vals[6].indexOf("e") !== -1, |
| | | "uids": [], |
| | | "uids": [] |
| | | } |
| | | } |
| | | |
| | |
| | | "expirationdate": vals[3] === "" ? null : parseInt(vals[3]), |
| | | "revoked": vals[4].indexOf("r") !== -1, |
| | | "disabled": vals[4].indexOf("d") !== -1, |
| | | "expired": vals[4].indexOf("e") !== -1, |
| | | "expired": vals[4].indexOf("e") !== -1 |
| | | }); |
| | | } |
| | | } |