Skip to content

Commit b54e8b4

Browse files
authored
Fix travis
1 parent 3a7c148 commit b54e8b4

File tree

4 files changed

+19
-19
lines changed

4 files changed

+19
-19
lines changed

FormData.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -388,7 +388,7 @@ if (typeof Blob === 'function' && (typeof FormData === 'undefined' || !FormData.
388388
init.body = init.body['_blob']()
389389
}
390390

391-
return _fetch.call(global, input, init)
391+
return _fetch.call(this, input, init)
392392
}
393393
}
394394

@@ -398,7 +398,7 @@ if (typeof Blob === 'function' && (typeof FormData === 'undefined' || !FormData.
398398
if (data instanceof FormDataPolyfill) {
399399
data = data['_asNative']()
400400
}
401-
return _sendBeacon.call(global.navigator, url, data)
401+
return _sendBeacon.call(this, url, data)
402402
}
403403
}
404404

formdata.min.js

Lines changed: 14 additions & 14 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

karma.conf.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
module.exports = function (config) {
22
config.set({
33
frameworks: ['mocha', 'chai'],
4-
files: ['test/*.js', 'formdata.js'],
4+
files: ['test/*.js', 'formdata.min.js'],
55
reporters: ['progress'],
66
port: 9876, // karma web server port
77
colors: true,

package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,11 @@
11
{
22
"name": "formdata-polyfill",
3-
"version": "3.0.16",
3+
"version": "3.0.17",
44
"description": "HTML5 `FormData` polyfill for Browsers.",
55
"main": "formdata.min.js",
66
"scripts": {
77
"build": "node build",
8-
"prepare": "npm run test && npm run build",
8+
"prepare": "npm run build && npm run test",
99
"test": "standard ./FormData.js && karma start --single-run --browsers ChromeHeadless karma.conf.js"
1010
},
1111
"repository": {

0 commit comments

Comments
 (0)