Skip to content

Commit 748dfb9

Browse files
authored
PANTHER_NO_HEADLESS bug fix (#487)
1 parent 1779026 commit 748dfb9

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

src/ProcessManager/ChromeManager.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -97,7 +97,7 @@ private function getDefaultArguments(): array
9797
$args = [];
9898

9999
// Enable the headless mode unless PANTHER_NO_HEADLESS is defined
100-
if ($_SERVER['PANTHER_NO_HEADLESS'] ?? true) {
100+
if (!($_SERVER['PANTHER_NO_HEADLESS'] ?? false)) {
101101
$args[] = '--headless';
102102
$args[] = '--window-size=1200,1100';
103103
$args[] = '--disable-gpu';

src/ProcessManager/FirefoxManager.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -92,7 +92,7 @@ private function getDefaultArguments(): array
9292
$args = [];
9393

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

0 commit comments

Comments
 (0)