Skip to content
This repository was archived by the owner on Jan 11, 2023. It is now read-only.

Commit 43fd91b

Browse files
committed
stringify rel attribute for consistency
1 parent e2abeac commit 43fd91b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/api/export.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -229,7 +229,7 @@ async function _export({
229229
link.refs.forEach((ref: Ref) => {
230230
if (ref.rel === 'preload' || ref.rel === 'modulepreload') {
231231
body = (body as string).replace('</head>',
232-
`<link rel=${ref.rel} as=${JSON.stringify(ref.as)} href=${JSON.stringify(ref.uri)} ${ref.as === 'script' ? 'crossorigin="use-credentials"' : ''}></head>`);
232+
`<link rel=${JSON.stringify(ref.rel)} as=${JSON.stringify(ref.as)} href=${JSON.stringify(ref.uri)} ${ref.as === 'script' ? 'crossorigin="use-credentials"' : ''}></head>`);
233233
}
234234
});
235235

0 commit comments

Comments
 (0)