From a0ca017af78679d42de298d9e43022adcc61fc63 Mon Sep 17 00:00:00 2001 From: Gordon Williams Date: Thu, 27 Jan 2022 16:51:06 +0000 Subject: [PATCH] fix upload instructions --- loader.js | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/loader.js b/loader.js index d8ba26269..fe6625ed3 100644 --- a/loader.js +++ b/loader.js @@ -32,12 +32,13 @@ DEVICEINFO = DEVICEINFO.filter(x=>x.id.startsWith("BANGLEJS")); // When a device is found, filter the apps accordingly function onFoundDeviceInfo(deviceId, deviceVersion) { - var fwURL = "#"; + var fwURL = "#", fwExtraText = ""; if (deviceId == "BANGLEJS") { fwURL = "https://www.espruino.com/Bangle.js#firmware-updates"; Const.MESSAGE_RELOAD = 'Hold BTN3\nto reload'; } if (deviceId == "BANGLEJS2") { + fwExtraText = "with the Firmware Update app in this App Loader, or " fwURL = "https://www.espruino.com/Bangle.js2#firmware-updates"; Const.MESSAGE_RELOAD = 'Hold button\nto reload'; } @@ -45,7 +46,7 @@ function onFoundDeviceInfo(deviceId, deviceVersion) { if (deviceId != "BANGLEJS" && deviceId != "BANGLEJS2") { showToast(`You're using ${deviceId}, not a Bangle.js. Did you want espruino.com/apps instead?` ,"warning", 20000); } else if (versionLess(deviceVersion, RECOMMENDED_VERSION)) { - showToast(`You're using an old Bangle.js firmware (${deviceVersion}) and ${RECOMMENDED_VERSION} is available (see changes). You can update with the instructions here` ,"warning", 20000); + showToast(`You're using an old Bangle.js firmware (${deviceVersion}) and ${RECOMMENDED_VERSION} is available (see changes). You can update ${fwExtraText}with the instructions here` ,"warning", 20000); } @@ -206,7 +207,7 @@ window.addEventListener('load', (event) => { }); selectLang.addEventListener("change",event=>{ SETTINGS.language = event.target.value; - reloadLanguage(); + reloadLanguage(); saveSettings(); }); reloadLanguage();