Skip to content
This repository has been archived by the owner on Apr 26, 2022. It is now read-only.

Commit

Permalink
Fix #23
Browse files Browse the repository at this point in the history
  • Loading branch information
zackify committed Nov 1, 2017
1 parent 93cad0f commit d065569
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@navjobs/upload",
"version": "3.0.11",
"version": "3.1.0",
"description": "HOC that displays a file upload on clicking children",
"main": "dist/index.js",
"scripts": {
Expand Down
2 changes: 1 addition & 1 deletion src/request/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ import registerListeners from './register-listeners';
export default ({ request, files, instance, progress }) =>
new Promise(resolve => {
const xhr = new XMLHttpRequest();
instance(xhr);
if (instance) instance(xhr);

registerListeners({ xhr, resolve, progress });

Expand Down

0 comments on commit d065569

Please sign in to comment.