Update
This commit is contained in:
@@ -43,7 +43,10 @@ public function takeScreenshot(string $url, array $options = []): array
|
|||||||
|
|
||||||
private function configureBrowsershot(string $url, array $options = []): Browsershot
|
private function configureBrowsershot(string $url, array $options = []): Browsershot
|
||||||
{
|
{
|
||||||
$browsershot = Browsershot::url($url);
|
$browsershot = Browsershot::url($url)
|
||||||
|
->waitUntilNetworkIdle()
|
||||||
|
->preventUnsuccessfulResponse();
|
||||||
|
|
||||||
|
|
||||||
if (App::environment('production')) {
|
if (App::environment('production')) {
|
||||||
$browsershot->noSandbox();
|
$browsershot->noSandbox();
|
||||||
|
|||||||
Reference in New Issue
Block a user