mirror of
https://github.com/puppeteer/puppeteer
synced 2024-06-14 14:02:48 +00:00
Run headless chromium with --hide-scrollbars
This patch runs chromium in headless mode with the --hide-scrollbars flag so that it doesn't spoil screenshots. Fixes #68.
This commit is contained in:
@@ -28,11 +28,6 @@ document.addEventListener('DOMContentLoaded', function() {
|
||||
|
||||
<style>
|
||||
|
||||
/* Hide scrollbar so that it is not captured on screenshots */
|
||||
::-webkit-scrollbar {
|
||||
display: none;
|
||||
}
|
||||
|
||||
body {
|
||||
margin: 0;
|
||||
padding: 0;
|
||||
|
||||
Reference in New Issue
Block a user