Skip to content

Commit

Permalink
require path only on desktop
Browse files Browse the repository at this point in the history
  • Loading branch information
tonyofbyteball committed Sep 25, 2019
1 parent 9845781 commit 8ac921e
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/js/controllers/export.js
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,8 @@ angular.module('copayApp.controllers').controller('exportController',
self.isCordova = isCordova;
self.bCompression = false;
self.connection = null;
$scope.downloadsDir = (process.env.HOME || process.env.USERPROFILE || '~') + require('path').sep +'Downloads';
if (!isCordova)
$scope.downloadsDir = (process.env.HOME || process.env.USERPROFILE || '~') + require('path').sep +'Downloads';

function addDBAndConfToZip(cb) {
var dbDirPath = fileSystemService.getDatabaseDirPath() + '/';
Expand Down

0 comments on commit 8ac921e

Please sign in to comment.