diff options
Diffstat (limited to 'js')
| -rw-r--r-- | js/index.js | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/js/index.js b/js/index.js index 3a5605b..4c8f926 100644 --- a/js/index.js +++ b/js/index.js @@ -94,7 +94,14 @@ function download_pdf(link, id){ fileSystem.root.getFile( filename, {create: true, exclusive: false}, function gotFileEntry(fileEntry){ - var sPath = "/storage/sdcard0" + fileEntry.fullPath; // !!! TODO Unterstützung anderer Geräte + var sPath; + + if(device.platform == "Android"){ + sPath = "/storage/sdcard0" + fileEntry.fullPath; + }else{ + sPath = fileEntry.fullPath; + } + console.log('Pfad: ' + sPath); var fileTransfer = new FileTransfer(); fileEntry.remove(); |
