alx/fos-backup-contacts — pull request #3 by mastro-elfo (2014-12-31 11:03:15+00:00)
Title: Update main.js

I moved the request to write the new file inside the `onsuccess` callback of the request to delete the previous one. To write the new file before the delete request is complete may result in an error, because it tries to write a file that already exists. This is true if the system is not so fast to delete the file: on my phone I have to click the 'create backup' button twice, because the first fails.