Skip to content
This repository was archived by the owner on Nov 1, 2021. It is now read-only.
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion src/ApiClient.js
Original file line number Diff line number Diff line change
Expand Up @@ -157,7 +157,7 @@
*/
exports.prototype.isFileParam = function(param) {
// fs.ReadStream in Node.js (but not in runtime like browserify)
if (typeof window === 'undefined' &&
if (Object.prototype.toString.call(global.process) === '[object process]' &&
typeof require === 'function' &&
require('fs') &&
param instanceof require('fs').ReadStream) {
Expand Down
4 changes: 2 additions & 2 deletions src/api/DefaultApi.js
Original file line number Diff line number Diff line change
Expand Up @@ -324,7 +324,7 @@
var authNames = ['Token'];
var contentTypes = [];
var accepts = ['image/png', 'image/jpeg', 'applicant/pdf'];
var returnType = File;
var returnType = (typeof File !== 'undefined') ? File : [];

return this.apiClient.callApi(
'/applicants/{applicant_id}/documents/{document_id}/download', 'GET',
Expand Down Expand Up @@ -370,7 +370,7 @@
var authNames = ['Token'];
var contentTypes = [];
var accepts = ['application/json'];
var returnType = File;
var returnType = (typeof File !== 'undefined') ? File : [];

return this.apiClient.callApi(
'/live_photos/{live_photo_id}/download', 'GET',
Expand Down