Skip to content

Commit

Permalink
commit
Browse files Browse the repository at this point in the history
  • Loading branch information
freekmurze committed Nov 16, 2017
1 parent b08123c commit 7234b6a
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 0 deletions.
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ All notable changes to `Browsershot` will be documented in this file
### 3.11.0 - 2017-11-16

- add `setOption`
- refactor internals

### 3.10.0 - 2017-11-13

Expand Down
14 changes: 14 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -296,6 +296,20 @@ Browsershot::url('https://example.com')->bodyHtml(); // returns the html of the

### Misc

#### Setting an arbitrary option

You can set any arbitrary options by calling `setOption`:

```php
Browsershot::url('https://example.com')
->setOption('landscape', true)
->save($pathToImage);
```


#### Setting the user agent


If, for some reason, you want to set the user agent Google Chrome should use when taking the screenshot you can do so:

```php
Expand Down

0 comments on commit 7234b6a

Please sign in to comment.