Skip to content

Commit 70f6edb

Browse files
committed
MC-15763: Introduce critical CSS scope loaded through head
- Stabilization
1 parent 104ba03 commit 70f6edb

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

app/code/Magento/Theme/Block/Html/Header/CriticalCss.php

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -45,14 +45,13 @@ public function __construct(
4545
* Returns critical css data as string.
4646
*
4747
* @return bool|string
48-
* @throws LocalizedException
4948
*/
5049
public function getCriticalCssData()
5150
{
5251
try {
5352
$asset = $this->assetRepo->createAsset($this->filePath, ['_secure' => 'false']);
5453
$content = $asset->getContent();
55-
} catch (NotFoundException $e) {
54+
} catch (LocalizedException | NotFoundException $e) {
5655
$content = '';
5756
};
5857

0 commit comments

Comments
 (0)