Skip to content

Commit fdcb245

Browse files
committed
format
1 parent 6f7856e commit fdcb245

File tree

1 file changed

+9
-9
lines changed

1 file changed

+9
-9
lines changed

src/polyfill/RTCDataChannel.ts

+9-9
Original file line numberDiff line numberDiff line change
@@ -172,19 +172,19 @@ export default class RTCDataChannel extends EventTarget implements globalThis.RT
172172
// Needs network error, type error implemented
173173
if (typeof data === 'string') {
174174
this.#dataChannel.sendMessage(data);
175-
} else if (data instanceof Blob) {
175+
} else if (data instanceof Blob) {
176176
data.arrayBuffer().then((ab) => {
177-
if (process?.versions?.bun) {
178-
this.#dataChannel.sendMessageBinary(Buffer.from(ab));
179-
} else {
180-
this.#dataChannel.sendMessageBinary(new Uint8Array(ab));
181-
}
177+
if (process?.versions?.bun) {
178+
this.#dataChannel.sendMessageBinary(Buffer.from(ab));
179+
} else {
180+
this.#dataChannel.sendMessageBinary(new Uint8Array(ab));
181+
}
182182
});
183-
} else {
183+
} else {
184184
if (process?.versions?.bun) {
185-
this.#dataChannel.sendMessageBinary(Buffer.from(data));
185+
this.#dataChannel.sendMessageBinary(Buffer.from(data));
186186
} else {
187-
this.#dataChannel.sendMessageBinary(new Uint8Array(data));
187+
this.#dataChannel.sendMessageBinary(new Uint8Array(data));
188188
}
189189
}
190190
}

0 commit comments

Comments
 (0)