mirror of
https://github.com/MercuryWorkshop/adrift.git
synced 2025-05-13 06:10:01 -04:00
fix different Array types causing JSON encoding failure
This commit is contained in:
parent
a2d9da2fd2
commit
986c75f633
1 changed files with 2 additions and 0 deletions
|
@ -179,6 +179,8 @@ export class AdriftBareClient extends Client {
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
|
||||||
|
// coerce iframe Array type to our window array type
|
||||||
|
protocols = Array.from(protocols);
|
||||||
let { send, close } = this.connection.wsconnect(
|
let { send, close } = this.connection.wsconnect(
|
||||||
remote,
|
remote,
|
||||||
protocols,
|
protocols,
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue