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 12, 2024
1 parent 144bf5a commit e5458fc
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 e5458fc

Please sign in to comment.