Skip to content

Commit 20b898a

Browse files
committed
Fix names
1 parent c0a29f4 commit 20b898a

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

  • packages/astro/src/runtime/server/render

packages/astro/src/runtime/server/render/tags.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -24,8 +24,8 @@ export function renderUniqueScriptElement(result: SSRResult, { props, children }
2424

2525
export function renderUniqueStylesheet(result: SSRResult, sheet: StylesheetAsset) {
2626
if (sheet.type === 'external') {
27-
if (Array.from(result.links).some((s) => s.props.href === sheet.src)) return '';
28-
const key = 'script-external-' + sheet.src;
27+
if (Array.from(result.styles).some((s) => s.props.href === sheet.src)) return '';
28+
const key = 'link-external-' + sheet.src;
2929
if(checkOrAddContentKey(result, key)) return '';
3030
return renderElement('link', {
3131
props: {
@@ -38,7 +38,7 @@ export function renderUniqueStylesheet(result: SSRResult, sheet: StylesheetAsset
3838

3939
if (sheet.type === 'inline') {
4040
if (Array.from(result.styles).some((s) => s.children.includes(sheet.content))) return '';
41-
const key = `script-inline-` + sheet.content;
41+
const key = `link-inline-` + sheet.content;
4242
if(checkOrAddContentKey(result, key)) return '';
4343
return renderElement('style', { props: { type: 'text/css' }, children: sheet.content });
4444
}

0 commit comments

Comments
 (0)