Skip to content

Commit

Permalink
Fix travis
Browse files Browse the repository at this point in the history
  • Loading branch information
jimmywarting authored Mar 3, 2019
1 parent 3a7c148 commit b54e8b4
Show file tree
Hide file tree
Showing 4 changed files with 19 additions and 19 deletions.
4 changes: 2 additions & 2 deletions FormData.js
Original file line number Diff line number Diff line change
Expand Up @@ -388,7 +388,7 @@ if (typeof Blob === 'function' && (typeof FormData === 'undefined' || !FormData.
init.body = init.body['_blob']()
}

return _fetch.call(global, input, init)
return _fetch.call(this, input, init)
}
}

Expand All @@ -398,7 +398,7 @@ if (typeof Blob === 'function' && (typeof FormData === 'undefined' || !FormData.
if (data instanceof FormDataPolyfill) {
data = data['_asNative']()
}
return _sendBeacon.call(global.navigator, url, data)
return _sendBeacon.call(this, url, data)
}
}

Expand Down
28 changes: 14 additions & 14 deletions formdata.min.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion karma.conf.js
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
module.exports = function (config) {
config.set({
frameworks: ['mocha', 'chai'],
files: ['test/*.js', 'formdata.js'],
files: ['test/*.js', 'formdata.min.js'],
reporters: ['progress'],
port: 9876, // karma web server port
colors: true,
Expand Down
4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
{
"name": "formdata-polyfill",
"version": "3.0.16",
"version": "3.0.17",
"description": "HTML5 `FormData` polyfill for Browsers.",
"main": "formdata.min.js",
"scripts": {
"build": "node build",
"prepare": "npm run test && npm run build",
"prepare": "npm run build && npm run test",
"test": "standard ./FormData.js && karma start --single-run --browsers ChromeHeadless karma.conf.js"
},
"repository": {
Expand Down

0 comments on commit b54e8b4

Please sign in to comment.