Skip to content
This repository has been archived by the owner on Aug 10, 2020. It is now read-only.

Commit

Permalink
Use cacheDirectory for share info to be a good Android citizen
Browse files Browse the repository at this point in the history
  • Loading branch information
Burstaholic committed Feb 18, 2016
1 parent 8231741 commit fde7641
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions www/shared/js/share.js
Original file line number Diff line number Diff line change
Expand Up @@ -7,14 +7,14 @@
Meteor.subscribe('subscription', {
onReady: function()
{
readFile(cordova.file.dataDirectory, 'pendingShare.json', function(err, shareInfo)
readFile(cordova.file.cacheDirectory, 'pendingShare.json', function(err, shareInfo)
{
if(err)
{
return;
}

removeFile(cordova.file.dataDirectory, 'pendingShare.json', function() { });
removeFile(cordova.file.cacheDirectory, 'pendingShare.json', function() { });
selectRoom(JSON.parse(shareInfo));
});

Expand Down Expand Up @@ -44,7 +44,7 @@ Meteor.subscribe('subscription', {

if(serverUrl != currentServerUrl)
{
writeFile(cordova.file.dataDirectory, 'pendingShare.json', JSON.stringify(data), function(err, data)
writeFile(cordova.file.cacheDirectory, 'pendingShare.json', JSON.stringify(data), function(err, data)
{
if(err)
{
Expand Down

0 comments on commit fde7641

Please sign in to comment.