Add Object.assign polyfill
This commit is contained in:
parent
95b9e5188a
commit
0ae427060f
|
@ -27,3 +27,6 @@ if (typeof String.prototype.repeat === 'undefined') {
|
||||||
if (typeof Symbol === 'undefined') {
|
if (typeof Symbol === 'undefined') {
|
||||||
require('core-js/fn/symbol');
|
require('core-js/fn/symbol');
|
||||||
}
|
}
|
||||||
|
if (typeof Object.assign === 'undefined') {
|
||||||
|
require('core-js/fn/object/assign');
|
||||||
|
}
|
||||||
|
|
|
@ -86,7 +86,9 @@ self.onmessage = function(event) {
|
||||||
* @param {Object} config The openpgp configuration
|
* @param {Object} config The openpgp configuration
|
||||||
*/
|
*/
|
||||||
function configure(config) {
|
function configure(config) {
|
||||||
Object.assign(openpgp.config, config);
|
Object.keys(config).forEach(function(key) {
|
||||||
|
openpgp.config[key] = config[key];
|
||||||
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|
Loading…
Reference in New Issue
Block a user