Skip to content

Commit cc25b89

Browse files
committed
Disable dev tools by default
1 parent b7e0f83 commit cc25b89

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
@@ -105,7 +105,7 @@ private function getDefaultArguments(): array
105105
}
106106

107107
// Enable devtools for debugging
108-
if (filter_var($_SERVER['PANTHER_DEVTOOLS'] ?? true, \FILTER_VALIDATE_BOOLEAN)) {
108+
if (filter_var($_SERVER['PANTHER_DEVTOOLS'] ?? false, \FILTER_VALIDATE_BOOLEAN)) {
109109
$args[] = '--auto-open-devtools-for-tabs';
110110
}
111111

src/ProcessManager/FirefoxManager.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -110,7 +110,7 @@ private function getDefaultArguments(): array
110110
}
111111

112112
// Enable devtools for debugging
113-
if (filter_var($_SERVER['PANTHER_DEVTOOLS'] ?? true, \FILTER_VALIDATE_BOOLEAN)) {
113+
if (filter_var($_SERVER['PANTHER_DEVTOOLS'] ?? false, \FILTER_VALIDATE_BOOLEAN)) {
114114
$args[] = '--devtools';
115115
}
116116

0 commit comments

Comments
 (0)