Skip to content

Commit

Permalink
fix recent change for file backup
Browse files Browse the repository at this point in the history
  • Loading branch information
gfwilliams committed Sep 13, 2024
1 parent 27450db commit 001783f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion backup.js
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@ function bangleDownload() {
showToast('Backup complete!', 'success');
if (typeof Android !== "undefined" && typeof Android.saveFile === 'function') {
// Recent Gadgetbridge version that provides the saveFile interface
Android.saveFile("Banglejs backup.zip", "application/zip", content);
Android.saveFile("Banglejs backup.zip", "application/zip", btoa(content));
} else {
Espruino.Core.Utils.fileSaveDialog(content, "Banglejs backup.zip");
}
Expand Down

0 comments on commit 001783f

Please sign in to comment.