Skip to content

Commit

Permalink
docs: remove polyfill example (#285)
Browse files Browse the repository at this point in the history
  • Loading branch information
michal-oleniacz-stp authored Jun 26, 2024
1 parent 7db133f commit 2e9b133
Showing 1 changed file with 1 addition and 7 deletions.
8 changes: 1 addition & 7 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -263,13 +263,7 @@ where it's difficult to do their own transpilation, we do provide some opt-in es
But then regardless of whether you use the es5 versions or not, you might need to polyfill certain
things that might be missing in the browsers you wish to support. A quick test using IE11 showed
that we needed polyfills for `Promise`, `URL`, `Object.entries`, `fetch`, `Number.isFinite` and
`Number.isInteger`. If you want any sort of debugging to work (say, if you're passing a function
using `console.log` as a parameter to any SDK function that supports logging), you might also need
to polyfill `console` and `console.log` (yeah, it's baffling, but a [known
issue](https://stackoverflow.com/questions/22315167/in-ie11-how-to-use-console-log) in IE). We added
them from polyfill.io like this:

<script src="https://cdn.polyfill.io/v2/polyfill.js?features=Promise,URL,Object.entries,fetch,Number.isFinite,Number.isInteger,console,console.log"></script>
`Number.isInteger`.

#### Cookies

Expand Down

0 comments on commit 2e9b133

Please sign in to comment.