mirror of
https://github.com/MercuryWorkshop/adrift.git
synced 2025-05-13 14:20:01 -04:00
WINDOW.ARRAYBUFFER IM GOING CRAZY
This commit is contained in:
parent
f6a06b5fb3
commit
0e1410bb95
5 changed files with 19 additions and 9 deletions
|
@ -147,7 +147,7 @@ export class Connection {
|
|||
type: C2SRequestType,
|
||||
data?: ArrayBuffer | Blob
|
||||
): Promise<void> {
|
||||
let header = new ArrayBuffer(2 + 1);
|
||||
let header = new window.ArrayBuffer(2 + 1);
|
||||
let view = new DataView(header);
|
||||
|
||||
let cursor = 0;
|
||||
|
@ -245,11 +245,11 @@ export class Connection {
|
|||
).catch(cleanup);
|
||||
return;
|
||||
}
|
||||
if (data instanceof ArrayBuffer) {
|
||||
if (data instanceof window.ArrayBuffer) {
|
||||
this.send(seq, C2SRequestTypes.WSSendBinary, data).catch(cleanup);
|
||||
return;
|
||||
}
|
||||
if (ArrayBuffer.isView(data)) {
|
||||
if (window.ArrayBuffer.isView(data)) {
|
||||
this.send(
|
||||
seq,
|
||||
C2SRequestTypes.WSSendBinary,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue