diff --git a/src/ChromePhpConfig.php b/src/ChromePhpConfig.php index 2f5318c..3eaf306 100644 --- a/src/ChromePhpConfig.php +++ b/src/ChromePhpConfig.php @@ -4,9 +4,7 @@ class ChromePhpConfig { - public function __construct( - public ?string $chromePath = null, - public bool $mergeGlobalCss = true, - ) { + public function __construct(public ?string $chromePath = null) + { } } diff --git a/src/ChromePhpRenderer.php b/src/ChromePhpRenderer.php index e5169e7..e0869eb 100644 --- a/src/ChromePhpRenderer.php +++ b/src/ChromePhpRenderer.php @@ -143,7 +143,7 @@ private function setHeaderAndFooter(): void $headerTemplate = $this->options->headerTemplate ?? ''; - if ($this->getChromePhpConfig()?->mergeGlobalCss) { + if ($this->config?->mergeCssToHeaderFooter) { $headerTemplate .= ""; }