Add format script to package.json and format with prettier.

This commit is contained in:
wearrrrr 2024-07-14 20:18:28 -05:00
parent 61bd33845b
commit be3b87e795
39 changed files with 1732 additions and 1734 deletions

View file

@ -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,
);
},
});