Skip to content

Commit

Permalink
Fix #552 , thanks to @Antony-Eliga
Browse files Browse the repository at this point in the history
  • Loading branch information
dr-dimitru committed Jan 17, 2018
1 parent 6ebe9cc commit e397bcb
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lib.js
Original file line number Diff line number Diff line change
Expand Up @@ -66,9 +66,9 @@ const formatFleURL = (fileRef, version = 'original') => {
check(version, String);

const _root = __meteor_runtime_config__.ROOT_URL.replace(/\/+$/, '');
const vRef = ((fileRef.versions && fileRef.versions[version]) || fileRef);
const vRef = (fileRef.versions && fileRef.versions[version]) || fileRef || {};

if (vRef.extension && _.isString(vRef, 'extension')) {
if (_.isString(vRef.extension)) {
ext = `.${vRef.extension.replace(/^\./, '')}`;
} else {
ext = '';
Expand Down

0 comments on commit e397bcb

Please sign in to comment.