Skip to content

Commit 0900f12

Browse files
authored
Merge pull request #13 from ItinerisLtd/incorrect-meta-link-tags
incorrect meta link tags
2 parents 9218015 + c06d68b commit 0900f12

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/AcornFavicons.php

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -135,7 +135,7 @@ protected function generateManifestTags(): array
135135
];
136136

137137
return array_map(
138-
fn (array $attr): string => $this->buildMetaTag($attr),
138+
fn (array $attr): string => $this->buildMetaTag($attr, 'link'),
139139
$attributes,
140140
);
141141
}
@@ -214,6 +214,7 @@ protected function generateWindowsMetaTags(): array
214214
'content' => $this->getPublicPath('browserconfig.xml'),
215215
],
216216
];
217+
$attributes = array_filter($attributes, fn (array $att): bool => ! empty($att['content']));
217218

218219
return array_merge(
219220
$tags,

0 commit comments

Comments
 (0)