diff --git a/package.json b/package.json index 3ed6e88..f3839c0 100644 --- a/package.json +++ b/package.json @@ -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": { diff --git a/src/CollectionFS/setProperties.js b/src/CollectionFS/setProperties.js index 9adb7b6..fbdd3f2 100644 --- a/src/CollectionFS/setProperties.js +++ b/src/CollectionFS/setProperties.js @@ -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);