--emulate-disable-serial
- CLI
- --emulate-disable-serial
Removes navigator.serial, Serial and SerialPort from the page and its workers, so the Web Serial API is absent. Without this flag the API is present where the preset’s platform’s Chrome has it, and a device request ends as a user’s cancel does.
Example
zshot -f page.png \
--emulate-disable-serial \
https://zshot-cli.com/example_assets/hello_zshot/{
"url": "https://zshot-cli.com/example_assets/hello_zshot/",
"output_type": "png",
"emulate_disable_serial": true
}curl -X POST http://127.0.0.1:3000/ \
-H "Content-Type: application/json" \
-d '{"url":"https://zshot-cli.com/example_assets/hello_zshot/","output_type":"png","emulate_disable_serial":true}' \
-o page.png