Skip to content

Commit

Permalink
Remove polyfil.io reference from warning message (#11741)
Browse files Browse the repository at this point in the history
  • Loading branch information
brophdawg11 committed Jun 27, 2024
1 parent 32ff05a commit dd607e0
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 5 deletions.
5 changes: 5 additions & 0 deletions .changeset/flat-seals-hunt.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"react-router-dom": patch
---

Remove `polyfill.io` reference from warning message because the domain was sold and has since been determined to serve malware. See https://sansec.io/research/polyfill-supply-chain-attack.
6 changes: 1 addition & 5 deletions packages/react-router-dom/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -1464,11 +1464,7 @@ export function useSearchParams(
`You cannot use the \`useSearchParams\` hook in a browser that does not ` +
`support the URLSearchParams API. If you need to support Internet ` +
`Explorer 11, we recommend you load a polyfill such as ` +
`https://github.com/ungap/url-search-params\n\n` +
`If you're unsure how to load polyfills, we recommend you check out ` +
`https://polyfill.io/v3/ which provides some recommendations about how ` +
`to load polyfills only for users that need them, instead of for every ` +
`user.`
`https://github.com/ungap/url-search-params.`
);

let defaultSearchParamsRef = React.useRef(createSearchParams(defaultInit));
Expand Down

0 comments on commit dd607e0

Please sign in to comment.