diff options
| author | amankumarsingh77 <amankumarsingh7702@gmail.com> | 2026-07-28 20:34:49 +0530 |
|---|---|---|
| committer | Aman Kumar <145339995+amankumarsingh77@users.noreply.github.com> | 2026-08-02 19:12:46 +0530 |
| commit | a9bdbd8590801cd9c2fa0cda6203948ac19a779c (patch) | |
| tree | 060ced4709815f9415fc1172842ed25d97de545f /src/daemon/index.ts | |
| parent | 34e5cfdcbe29bbb5f2f46ba54eb67903abd9274d (diff) | |
refactor: tidy the whitespace the comment removal left behind
Drops leading blank lines where a file header was removed, collapses
double blank lines, and closes the empty catch/handler blocks whose only
content had been a comment. Whitespace only.
Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>
Diffstat (limited to 'src/daemon/index.ts')
| -rw-r--r-- | src/daemon/index.ts | 5 |
1 files changed, 0 insertions, 5 deletions
diff --git a/src/daemon/index.ts b/src/daemon/index.ts index 30a6b6e..226a895 100644 --- a/src/daemon/index.ts +++ b/src/daemon/index.ts @@ -1,4 +1,3 @@ - import { createIpcServer } from "./server"; import { createCdpBridge, type SendToClient } from "./bridge"; import { DAEMON_IDLE_TIMEOUT_MS } from "./protocol"; @@ -9,7 +8,6 @@ async function main() { const ipcServer = createIpcServer(); const cdpBridge = createCdpBridge(); - ipcServer.onMessage((msg, client) => { if (msg.type !== "request") return; @@ -39,7 +37,6 @@ async function main() { }); }); - let idleTimer: ReturnType<typeof setTimeout> | null = null; const resetIdleTimer = (): void => { @@ -60,7 +57,6 @@ async function main() { ipcServer.onConnect(() => { cancelIdleTimer(); }); ipcServer.onDisconnect(() => { resetIdleTimer(); }); - try { await ipcServer.start(); console.log("[pi-browser-daemon] IPC server listening"); @@ -73,7 +69,6 @@ async function main() { resetIdleTimer(); - const shutdown = async () => { console.log("[pi-browser-daemon] Shutting down..."); await cdpBridge.stop(); |
