Skip to content

Commit

Permalink
fix: reduce length
Browse files Browse the repository at this point in the history
  • Loading branch information
9aoy committed Nov 27, 2023
1 parent 54a46d1 commit 114f717
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -145,7 +145,8 @@ function generateLinks(
crossOriginLoading &&
!(crossOriginLoading !== 'use-credentials' && publicPath === '/')
) {
attributes.crossorigin = crossOriginLoading;
attributes.crossorigin =
crossOriginLoading === 'anonymous' ? '' : crossOriginLoading;
}
}
}
Expand Down

0 comments on commit 114f717

Please sign in to comment.