Skip to content

Commit

Permalink
mergeCssToHeaderFooter
Browse files Browse the repository at this point in the history
  • Loading branch information
medilies committed Nov 22, 2023
1 parent 5f693f7 commit ce388e0
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 5 deletions.
6 changes: 2 additions & 4 deletions src/ChromePhpConfig.php
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,7 @@

class ChromePhpConfig
{
public function __construct(
public ?string $chromePath = null,
public bool $mergeGlobalCss = true,
) {
public function __construct(public ?string $chromePath = null)
{
}
}
2 changes: 1 addition & 1 deletion src/ChromePhpRenderer.php
Original file line number Diff line number Diff line change
Expand Up @@ -143,7 +143,7 @@ private function setHeaderAndFooter(): void

$headerTemplate = $this->options->headerTemplate ?? '';

if ($this->getChromePhpConfig()?->mergeGlobalCss) {
if ($this->config?->mergeCssToHeaderFooter) {
$headerTemplate .= "<style>{$this->css}</style>";
}

Expand Down

0 comments on commit ce388e0

Please sign in to comment.