Skip to content

Commit

Permalink
Adjust how CSS files are fetched (#19091)
Browse files Browse the repository at this point in the history
  • Loading branch information
Timer authored Nov 12, 2020
1 parent ac3fe8e commit c78c982
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/next/client/route-loader.ts
Original file line number Diff line number Diff line change
Expand Up @@ -246,7 +246,7 @@ function createRouteLoader(assetPrefix: string): RouteLoader {

styleSheets.set(
href,
(prom = fetch(href, { credentials: 'include' })
(prom = fetch(href)
.then((res) => {
if (!res.ok) {
throw new Error(`Failed to load stylesheet: ${href}`)
Expand Down

0 comments on commit c78c982

Please sign in to comment.