mirror of
https://github.com/outline/outline.git
synced 2026-11-26 15:43:48 +03:00
fix: Preload request credentials mode does not match warning
This commit is contained in:
1 parent
778cc196e4
commit
e9dd7d5f15
1 file changed
+4
-3
@@ -39,10 +39,11 @@ if (isProduction) {
|
||||
if (file.endsWith(".js")) {
|
||||
prefetchTags.push(
|
||||
<link
|
||||
rel="preload"
|
||||
rel="prefetch"
|
||||
href={`${env.CDN_URL || ""}/static/${file}`}
|
||||
key={file}
|
||||
as="script"
|
||||
crossOrigin="anonymous"
|
||||
/>
|
||||
);
|
||||
} else if (file.endsWith(".css")) {
|
||||
@@ -52,11 +53,11 @@ if (isProduction) {
|
||||
href={`${env.CDN_URL || ""}/static/${file}`}
|
||||
key={file}
|
||||
as="style"
|
||||
crossOrigin="anonymous"
|
||||
/>
|
||||
);
|
||||
}
|
||||
});
|
||||
}
|
||||
|
||||
// @ts-expect-error ts-migrate(2345) FIXME: Argument of type 'Element[]' is not assignable to ... Remove this comment to see the full error message
|
||||
export default ReactDOMServer.renderToString(prefetchTags);
|
||||
export default ReactDOMServer.renderToString(<>{prefetchTags}</>);
|
||||
Reference in new issue
Block a user