Skip to content

Commit

Permalink
Fix CollectionFS
Browse files Browse the repository at this point in the history
  • Loading branch information
Théo mathieu committed Apr 21, 2016
1 parent 8f182a4 commit 16904d3
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "react-native-meteor",
"version": "1.0.0-beta28",
"version": "1.0.0-beta29",
"description": "Full Meteor Client for React Native",
"main": "src/Meteor.js",
"scripts": {
Expand Down
2 changes: 1 addition & 1 deletion src/CollectionFS/setProperties.js
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ export default (name, file)=> {
...file,
url: params => {
const token = Data._tokenIdSaved;
return Data.replace('ws://', 'http://').replace('wss://', 'https://').getUrl()+'/cfs/files/'+name+'/'+file._id+'?store='+getStoreName(params)+(token ? '&token='+base64.encode(JSON.stringify({authToken: token})) : "");
return Data.getUrl().replace('ws://', 'http://').replace('wss://', 'https://')+'/cfs/files/'+name+'/'+file._id+'?store='+getStoreName(params)+(token ? '&token='+base64.encode(JSON.stringify({authToken: token})) : "");
},
isImage: params => {
const type = getType(params);
Expand Down

0 comments on commit 16904d3

Please sign in to comment.