Skip to content

Commit 71eb2ff

Browse files
authored
Disable dev tools by default (#679)
* Disable dev tools by default * add changelog
1 parent 8b07800 commit 71eb2ff

File tree

3 files changed

+7
-2
lines changed

3 files changed

+7
-2
lines changed

CHANGELOG.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,11 @@
11
CHANGELOG
22
=========
33

4+
2.3.0
5+
-----
6+
7+
* Disable dev-tools by default
8+
49
2.2.0
510
-----
611

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)