Skip to content

Commit

Permalink
fix: match long ternary style
Browse files Browse the repository at this point in the history
  • Loading branch information
lukeed committed Dec 11, 2018
1 parent 1662c0c commit 06a9a0a
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/prefetch.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -89,7 +89,9 @@ function highPriFetchStrategy(url) {
//
// As of 2018, fetch() is high-priority in Chrome
// and medium-priority in Safari.
return self.fetch == null ? xhrPrefetchStrategy(url) : fetch(url, {credentials: `include`});
return self.fetch == null
? xhrPrefetchStrategy(url)
: fetch(url, {credentials: `include`});
}

const supportedPrefetchStrategy = support(`prefetch`)
Expand Down

0 comments on commit 06a9a0a

Please sign in to comment.