mirror of
https://github.com/vrtmrz/obsidian-livesync.git
synced 2026-03-31 22:25:17 +00:00
- No longer unexpected `Unhandled Rejections` during P2P operations (waiting acceptance). CLI new features - P2P sync has been implemented.
14 lines
328 B
JavaScript
14 lines
328 B
JavaScript
#!/usr/bin/env node
|
|
import polyfill from "node-datachannel/polyfill";
|
|
import { main } from "./main";
|
|
|
|
for (const prop in polyfill) {
|
|
// @ts-ignore Applying polyfill to globalThis
|
|
globalThis[prop] = (polyfill as any)[prop];
|
|
}
|
|
|
|
main().catch((error) => {
|
|
console.error(`[Fatal Error]`, error);
|
|
process.exit(1);
|
|
});
|