feat: accept browser launch options
This commit is contained in:
@@ -38,3 +38,12 @@ router.get('/start', (req, res) => {
|
|||||||
return res.send(id);
|
return res.send(id);
|
||||||
});
|
});
|
||||||
|
|
||||||
|
|
||||||
|
router.post('/start', (req, res) => {
|
||||||
|
const id = initializeRemoteBrowserForRecording({
|
||||||
|
browser: chromium,
|
||||||
|
launchOptions: req.body,
|
||||||
|
});
|
||||||
|
return res.send(id);
|
||||||
|
});
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user