diff options
Diffstat (limited to 'data/iphone-java/HelloScript.app/HelloScript.js')
-rw-r--r-- | data/iphone-java/HelloScript.app/HelloScript.js | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/data/iphone-java/HelloScript.app/HelloScript.js b/data/iphone-java/HelloScript.app/HelloScript.js index 976868ec2..18d45240a 100644 --- a/data/iphone-java/HelloScript.app/HelloScript.js +++ b/data/iphone-java/HelloScript.app/HelloScript.js @@ -5,7 +5,7 @@ var contacts = []; var sections = []; var ab = new sql.Database(); -ab.open("/var/root/Library/AddressBook/AddressBook.sqlitedb", 0666); try { +ab.open(application.userHomeDirectory().toString() + "/Library/AddressBook/AddressBook.sqlitedb", 0666); try { var st = ab.prepare("select first, last from ABPerson where first is not null order by first"); try { while (st.step()) contacts.push({ |