Skip to content

Commit

Permalink
Add polyfill for Promises
Browse files Browse the repository at this point in the history
  • Loading branch information
Gregoire Weber committed Mar 23, 2017
1 parent 7f71719 commit cba6551
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/fileHelper.js
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
require('es6-promise').polyfill();

var fs = require('fs');
var md5File = require('md5-file/promise');

Expand Down
1 change: 1 addition & 0 deletions src/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@ var ERROR_UNEXPECTED_SERVER_RESPONSE = 'UNEXPECTED_SERVER_RESPONSE';
var DEFAULT_BARRACKS_BASE_URL = 'https://app.barracks.io';
var CHECK_UPDATE_ENDPOINT = '/api/device/v2/update/check';

require('es6-promise').polyfill();
var fs = require('fs');
var request = require('request');
var clientHelper = require('./clientHelper');
Expand Down

0 comments on commit cba6551

Please sign in to comment.