capitalize SetTransport

This commit is contained in:
Percs 2024-07-07 18:37:02 -05:00
parent 3fd8d4e293
commit 34ac32b3ca

View file

@ -107,7 +107,7 @@ export class BareMuxConnection {
this.worker = new WorkerConnection(workerPath); this.worker = new WorkerConnection(workerPath);
} }
async setTransport(path: string, options: any[]) { async SetTransport(path: string, options: any[]) {
await this.setManualTransport(` await this.setManualTransport(`
const { default: BareTransport } = await import("${path}"); const { default: BareTransport } = await import("${path}");
return new BareTransport(${options.map(x => JSON.stringify(x)).join(", ")}); return new BareTransport(${options.map(x => JSON.stringify(x)).join(", ")});