Skip to content

Commit

Permalink
delete whitespaces
Browse files Browse the repository at this point in the history
  • Loading branch information
murat-dogan committed Nov 22, 2024
1 parent e505099 commit 0e0c197
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/polyfill/RTCDataChannel.ts
Original file line number Diff line number Diff line change
Expand Up @@ -72,12 +72,12 @@ export default class RTCDataChannel extends EventTarget implements globalThis.RT
});

this.#dataChannel.onMessage((data) => {
if (ArrayBuffer.isView(data)) {
if (ArrayBuffer.isView(data)) {
if (this.binaryType == 'arraybuffer')
data = data.buffer;
else
data = Buffer.from(data.buffer);
}
data = Buffer.from(data.buffer);
}

this.dispatchEvent(new MessageEvent('message', { data }));
});
Expand Down

0 comments on commit 0e0c197

Please sign in to comment.