MDN’s new design is in Beta! A sneak peek: https://blog.mozilla.org/opendesign/mdns-new-design-beta/

jordanstephens

Member since
jordanstephens

Recent Docs Activity

View all activity
Page Date Comment

Using Fetch


Update last revision to prevent `Uncaught TypeError` when `response.headers.get("content-type")` is `null`

Using Fetch


Change `content-type` header condition to check for `application/json` to be a substring of the `content-type` header, but not necessarily equal to it. This allows for header values such as `application/json; charset=utf-8` to pass the condition.