diff options
author | ab <abdullah_ahmed@brown.edu> | 2019-07-14 23:39:56 -0400 |
---|---|---|
committer | ab <abdullah_ahmed@brown.edu> | 2019-07-14 23:39:56 -0400 |
commit | b7dd805549c5cdb6b583312e5e9637f9f3e0ee93 (patch) | |
tree | 24217f91f213e57c503d226bae1475acb84c6a1d /src/client/util/request-image-size.js | |
parent | baf446a5d65f8e0203eb3c7fb2f43d62a6997daa (diff) | |
parent | d7c6f0da00d4ed56d28f679d6f7de1002684864a (diff) |
Merge branch 'master' of https://github.com/browngraphicslab/Dash-Web
Diffstat (limited to 'src/client/util/request-image-size.js')
-rw-r--r-- | src/client/util/request-image-size.js | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/src/client/util/request-image-size.js b/src/client/util/request-image-size.js index 0f9328872..27605d167 100644 --- a/src/client/util/request-image-size.js +++ b/src/client/util/request-image-size.js @@ -21,7 +21,9 @@ module.exports = function requestImageSize(options) { if (options && typeof options === 'object') { opts = Object.assign(options, opts); } else if (options && typeof options === 'string') { - opts = Object.assign({ uri: options }, opts); + opts = Object.assign({ + uri: options + }, opts); } else { return Promise.reject(new Error('You should provide an URI string or a "request" options object.')); } @@ -70,4 +72,4 @@ module.exports = function requestImageSize(options) { req.on('error', err => reject(err)); }); -}; +};
\ No newline at end of file |