mirror of
https://github.com/MercuryWorkshop/scramjet.git
synced 2025-05-13 14:30:02 -04:00
Add format script to package.json and format with prettier.
This commit is contained in:
parent
61bd33845b
commit
be3b87e795
39 changed files with 1732 additions and 1734 deletions
|
@ -2,15 +2,15 @@ import { BareClient } from "../shared";
|
|||
const client = new BareClient();
|
||||
|
||||
WebSocket = new Proxy(WebSocket, {
|
||||
construct(target, args) {
|
||||
return client.createWebSocket(
|
||||
args[0],
|
||||
args[1],
|
||||
target,
|
||||
{
|
||||
"User-Agent": navigator.userAgent,
|
||||
},
|
||||
ArrayBuffer.prototype
|
||||
);
|
||||
},
|
||||
construct(target, args) {
|
||||
return client.createWebSocket(
|
||||
args[0],
|
||||
args[1],
|
||||
target,
|
||||
{
|
||||
"User-Agent": navigator.userAgent,
|
||||
},
|
||||
ArrayBuffer.prototype,
|
||||
);
|
||||
},
|
||||
});
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue