Skip to content

Commit

Permalink
fix a typo
Browse files Browse the repository at this point in the history
  • Loading branch information
zloirock committed Jul 29, 2021
1 parent 7ac3900 commit 22c8126
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/core-js/modules/web.url-search-params.js
Expand Up @@ -322,7 +322,7 @@ $({ global: true, forced: !USE_NATIVE_URL }, {
// Wrap `fetch` and `Request` for correct work with polyfilled `URLSearchParams`
if (!USE_NATIVE_URL && typeof Headers == 'function') {
var wrapRequestOptions = function (init) {
if (!isObject(init)) {
if (isObject(init)) {
var body = init.body;
var headers;
if (classof(body) === URL_SEARCH_PARAMS) {
Expand Down

0 comments on commit 22c8126

Please sign in to comment.