mirror of
https://github.com/the-djmaze/snappymail.git
synced 2026-09-10 01:47:03 +03:00
Remove OpenPGP support for IE and Node, and es6-promise polyfill
This commit is contained in:
parent
8c454ccd9d
commit
be76df33b6
13 changed files with 198 additions and 1824 deletions
4
vendors/openpgp-2.6.2/src/hkp.js
vendored
4
vendors/openpgp-2.6.2/src/hkp.js
vendored
|
|
@ -32,7 +32,7 @@ import config from './config';
|
|||
*/
|
||||
export default function HKP(keyServerBaseUrl) {
|
||||
this._baseUrl = keyServerBaseUrl ? keyServerBaseUrl : config.keyserver;
|
||||
this._fetch = typeof window !== 'undefined' ? window.fetch : require('node-fetch');
|
||||
this._fetch = window.fetch;
|
||||
}
|
||||
|
||||
/**
|
||||
|
|
@ -83,4 +83,4 @@ HKP.prototype.upload = function(publicKeyArmored) {
|
|||
},
|
||||
body: 'keytext=' + encodeURIComponent(publicKeyArmored)
|
||||
});
|
||||
};
|
||||
};
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue