Skip to content

Commit

Permalink
fixed detect a unifile service thx to isLoggedIn since this attribute…
Browse files Browse the repository at this point in the history
… is never set by unifile (my PR has never been merged)
  • Loading branch information
lexoyo committed Aug 24, 2018
1 parent 58e90c7 commit 20815d5
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/js/UnifileService.js
Original file line number Diff line number Diff line change
Expand Up @@ -299,6 +299,7 @@ export default class UnifileService {
}

static isService (file) {
return typeof file.isLoggedIn !== 'undefined';
console.log('isService', file, file.isLoggedIn);
return typeof file.mime === 'application/json';
}
}

0 comments on commit 20815d5

Please sign in to comment.