From 001783fcb7c902ed0bffd1acd94c584ad917b36b Mon Sep 17 00:00:00 2001 From: Gordon Williams Date: Fri, 13 Sep 2024 09:07:19 +0100 Subject: [PATCH] fix recent change for file backup --- backup.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/backup.js b/backup.js index 2475c8002..cc4c327bc 100644 --- a/backup.js +++ b/backup.js @@ -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"); }