Skip to content

Commit

Permalink
DRY out
Browse files Browse the repository at this point in the history
  • Loading branch information
Rich Harris committed May 17, 2023
1 parent 28cd18e commit 774bc04
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions packages/kit/src/core/postbuild/crawl.js
Original file line number Diff line number Diff line change
Expand Up @@ -227,11 +227,9 @@ export function crawl(html, base) {
}

if (tag === 'META' && content) {
if (name && CRAWLABLE_META_NAME_ATTRS.has(name)) {
hrefs.push(resolve(base, content));
}
const attr = name ?? property;

if (property && CRAWLABLE_META_NAME_ATTRS.has(property)) {
if (attr && CRAWLABLE_META_NAME_ATTRS.has(attr)) {
hrefs.push(resolve(base, content));
}
}
Expand Down

0 comments on commit 774bc04

Please sign in to comment.