Skip to content

Commit

Permalink
Prevent taking screenshots twice
Browse files Browse the repository at this point in the history
  • Loading branch information
clementmas committed Jun 11, 2024
1 parent ffcd2e4 commit 4d7f87e
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions src/Browsershot.php
Original file line number Diff line number Diff line change
Expand Up @@ -709,7 +709,7 @@ public function triggeredRequests(): ?array
{
$requests = $this->chromiumResult?->getRequestsList();

if ($requests) {
if (!is_null($requests)) {
return $requests;
}

Expand All @@ -734,7 +734,7 @@ public function redirectHistory(): ?array
{
$redirectHistory = $this->chromiumResult?->getRedirectHistory();

if ($redirectHistory) {
if (!is_null($redirectHistory)) {
return $redirectHistory;
}

Expand All @@ -756,7 +756,7 @@ public function consoleMessages(): ?array
{
$messages = $this->chromiumResult?->getConsoleMessages();

if ($messages) {
if (!is_null($messages)) {
return $messages;
}

Expand All @@ -776,7 +776,7 @@ public function failedRequests(): ?array
{
$requests = $this->chromiumResult?->getFailedRequests();

if ($requests) {
if (!is_null($requests)) {
return $requests;
}

Expand All @@ -796,7 +796,7 @@ public function pageErrors(): ?array
{
$pageErrors = $this->chromiumResult?->getPageErrors();

if ($pageErrors) {
if (!is_null($pageErrors)) {
return $pageErrors;
}

Expand Down

0 comments on commit 4d7f87e

Please sign in to comment.