Skip to content

Commit

Permalink
PANTHER_NO_HEADLESS bug fix (#487)
Browse files Browse the repository at this point in the history
  • Loading branch information
metaer authored Jul 13, 2021
1 parent 1779026 commit 748dfb9
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/ProcessManager/ChromeManager.php
Original file line number Diff line number Diff line change
Expand Up @@ -97,7 +97,7 @@ private function getDefaultArguments(): array
$args = [];

// Enable the headless mode unless PANTHER_NO_HEADLESS is defined
if ($_SERVER['PANTHER_NO_HEADLESS'] ?? true) {
if (!($_SERVER['PANTHER_NO_HEADLESS'] ?? false)) {
$args[] = '--headless';
$args[] = '--window-size=1200,1100';
$args[] = '--disable-gpu';
Expand Down
2 changes: 1 addition & 1 deletion src/ProcessManager/FirefoxManager.php
Original file line number Diff line number Diff line change
Expand Up @@ -92,7 +92,7 @@ private function getDefaultArguments(): array
$args = [];

// Enable the headless mode unless PANTHER_NO_HEADLESS is defined
if ($_SERVER['PANTHER_NO_HEADLESS'] ?? true) {
if (!($_SERVER['PANTHER_NO_HEADLESS'] ?? false)) {
$args[] = '--headless';
$args[] = '--window-size=1200,1100';
}
Expand Down

0 comments on commit 748dfb9

Please sign in to comment.