Don't zero-copy transfer buffers from the worker by default

This commit is contained in:
Daniel Huigens 2020-07-14 18:14:23 +02:00
parent 1c41c72520
commit 3218f7b7f8

View File

@ -158,7 +158,7 @@ function delegate(id, method, options) {
* @param {Object} event Contains event type and data
*/
function response(event) {
self.postMessage(event, openpgp.util.getTransferables(event.data, true));
self.postMessage(event, openpgp.util.getTransferables(event.data, openpgp.config.zero_copy));
}
/**