💬 Commit message: Update 2026-02-06 20:42:32, 3 files, 3 lines

📁 Files changed: 3
📝 Lines changed: 3

  • gh.png
  • server.ts
  • test.png
This commit is contained in:
Adam Ladachowski
2026-02-06 20:42:32 +01:00
parent 86cc13075f
commit e418774f3e
3 changed files with 2 additions and 1 deletions
+2 -1
View File
@@ -146,6 +146,7 @@ export class BrowserServer {
private setupMiddleware(): void {
this.app.use(express.json());
this.app.use(express.text({ type: '*/*' }));
}
private setupRoutes(): void {
@@ -154,7 +155,7 @@ export class BrowserServer {
private async handleCommand(req: Request, res: Response): Promise<void> {
try {
const cmd = req.body as BrowserCommand;
const cmd: BrowserCommand = typeof req.body === 'string' ? JSON.parse(req.body) : req.body;
logCommand(cmd);
if (cmd.cmd === 'close') {