From 9139039b98545523887a407607ac77509e273918 Mon Sep 17 00:00:00 2001 From: schneefux Date: Sat, 29 Mar 2014 18:25:18 +0100 Subject: mache Code platformunabhängiger MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- js/index.js | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) (limited to 'js') 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(); -- cgit v1.3.1