Add Object.assign polyfill

This commit is contained in:
Daniel Huigens 2018-05-01 16:54:11 +02:00
parent 95b9e5188a
commit 0ae427060f
2 changed files with 6 additions and 1 deletions

View File

@ -27,3 +27,6 @@ if (typeof String.prototype.repeat === 'undefined') {
if (typeof Symbol === 'undefined') {
require('core-js/fn/symbol');
}
if (typeof Object.assign === 'undefined') {
require('core-js/fn/object/assign');
}

View File

@ -86,7 +86,9 @@ self.onmessage = function(event) {
* @param {Object} config The openpgp configuration
*/
function configure(config) {
Object.assign(openpgp.config, config);
Object.keys(config).forEach(function(key) {
openpgp.config[key] = config[key];
});
}
/**