fix should start maximized ?
All checks were successful
Push image to registry / build-image (push) Successful in 5m28s
All checks were successful
Push image to registry / build-image (push) Successful in 5m28s
This commit is contained in:
@ -181,8 +181,7 @@ abstract class BrowserJob implements ShouldQueue
|
||||
*/
|
||||
protected function hasHeadlessDisabled(): bool
|
||||
{
|
||||
return isset($_SERVER['DUSK_HEADLESS_DISABLED']) ||
|
||||
isset($_ENV['DUSK_HEADLESS_DISABLED']);
|
||||
return config('dusk.headlessDisabled', false);
|
||||
}
|
||||
|
||||
/**
|
||||
@ -190,8 +189,7 @@ abstract class BrowserJob implements ShouldQueue
|
||||
*/
|
||||
protected function shouldStartMaximized(): bool
|
||||
{
|
||||
return isset($_SERVER['DUSK_START_MAXIMIZED']) ||
|
||||
isset($_ENV['DUSK_START_MAXIMIZED']);
|
||||
return config('dusk.shouldStartMaximized', false);
|
||||
}
|
||||
|
||||
/**
|
||||
|
@ -4,5 +4,7 @@ return [
|
||||
|
||||
"driver" => [
|
||||
"url" => $_ENV['DUSK_DRIVER_URL'] ?? env('DUSK_DRIVER_URL') ?? null
|
||||
]
|
||||
],
|
||||
"shouldStartMaximized" => $_ENV['DUSK_START_MAXIMIZED'] ?? env('DUSK_START_MAXIMIZED') ?? false,
|
||||
"headlessDisabled" => $_ENV['DUSK_HEADLESS_DISABLED'] ?? env('DUSK_HEADLESS_DISABLED') ?? false
|
||||
];
|
||||
|
Reference in New Issue
Block a user