--emulate-disable-usb
- CLI
- --emulate-disable-usb
Removes navigator.usb and USB, USBDevice and the other USB interfaces from the page and its workers, so the WebUSB 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-usb \
https://zshot-cli.com/example_assets/hello_zshot/{
"url": "https://zshot-cli.com/example_assets/hello_zshot/",
"output_type": "png",
"emulate_disable_usb": 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_usb":true}' \
-o page.png