Files
obsidian-livesync/src/apps/cli/entrypoint.ts
vorotamoroz cda27fb7f8 - Update trystero to v0.23.0
- Add dockerfile for CLI
- Change relay image for testing on arm64
2026-03-31 07:17:51 +00:00

15 lines
481 B
JavaScript

#!/usr/bin/env node
import * as polyfill from "werift";
import { main } from "./main";
const rtcPolyfillCtor = (polyfill as any).RTCPeerConnection;
if (typeof (globalThis as any).RTCPeerConnection === "undefined" && typeof rtcPolyfillCtor === "function") {
// Fill only the standard WebRTC global in Node CLI runtime.
(globalThis as any).RTCPeerConnection = rtcPolyfillCtor;
}
main().catch((error) => {
console.error(`[Fatal Error]`, error);
process.exit(1);
});