Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: transfer from worker fixed #455

Merged
merged 13 commits into from
Jun 28, 2024
Merged
4 changes: 2 additions & 2 deletions src/worker.js
Original file line number Diff line number Diff line change
Expand Up @@ -24,8 +24,8 @@ if (typeof self !== 'undefined' && typeof postMessage === 'function' && typeof a
callback(message.data);
})
};
worker.send = function (message) {
postMessage(message);
worker.send = function (message, transfer) {
transfer ? postMessage(message, transfer) : postMessage (message);
};
}
else if (typeof process !== 'undefined') {
Expand Down