From e5458fc5a009bed5bee19305881219b0cba38b9b Mon Sep 17 00:00:00 2001 From: Gordon Williams Date: Thu, 12 Sep 2024 13:33:54 +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 2475c80027..cc4c327bc1 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"); }