From e5d2f06f91018dffadbdd1de7af0c170bcb965ce Mon Sep 17 00:00:00 2001 From: karishmas6 Date: Sun, 9 Jun 2024 00:36:12 +0530 Subject: [PATCH] feat: accept browser launch options --- server/src/routes/record.ts | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/server/src/routes/record.ts b/server/src/routes/record.ts index dbac1646..272ac26f 100644 --- a/server/src/routes/record.ts +++ b/server/src/routes/record.ts @@ -38,3 +38,12 @@ router.get('/start', (req, res) => { return res.send(id); }); + +router.post('/start', (req, res) => { + const id = initializeRemoteBrowserForRecording({ + browser: chromium, + launchOptions: req.body, + }); + return res.send(id); +}); +