mirror of
https://github.com/mozilla/pdf.js.git
synced 2025-04-20 15:18:08 +02:00
Merge pull request #16175 from Snuffleupagus/LoopbackPort-transfer
Fix the `transfer` parameter, for `structuredClone`, in the `LoopbackPort`
This commit is contained in:
commit
b1e0253f29
2 changed files with 15 additions and 25 deletions
|
@ -1943,9 +1943,9 @@ class LoopbackPort {
|
|||
|
||||
#deferred = Promise.resolve();
|
||||
|
||||
postMessage(obj, transfers) {
|
||||
postMessage(obj, transfer) {
|
||||
const event = {
|
||||
data: structuredClone(obj, transfers),
|
||||
data: structuredClone(obj, transfer ? { transfer } : null),
|
||||
};
|
||||
|
||||
this.#deferred.then(() => {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue