From b59fd3623afb7372d543c605ac235287bdee9ff7 Mon Sep 17 00:00:00 2001 From: t0m1o1 <94725994+t0m1o1@users.noreply.github.com> Date: Sat, 20 Nov 2021 04:59:58 +0000 Subject: [PATCH 1/3] Test for mode being undefined Code would fail if mode was undefined and launcher would fail to show --- apps/swiperclocklaunch/boot.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/apps/swiperclocklaunch/boot.js b/apps/swiperclocklaunch/boot.js index 0bb8d588a..0a4e617e1 100644 --- a/apps/swiperclocklaunch/boot.js +++ b/apps/swiperclocklaunch/boot.js @@ -3,7 +3,7 @@ var sui = Bangle.setUI; Bangle.setUI = function(mode, cb) { sui(mode,cb); - if (!mode.startsWith("clock")) return; + if (mode && !mode.startsWith("clock")) return; Bangle.swipeHandler = dir => { if (dir<0) Bangle.showLauncher(); }; Bangle.on("swipe", Bangle.swipeHandler); }; @@ -14,4 +14,4 @@ setTimeout(function() { Bangle.swipeHandler = dir => { if (dir>0) load(); }; Bangle.on("swipe", Bangle.swipeHandler); } -}, 10); \ No newline at end of file +}, 10); From 8da7d97e8edb50d3117dc082344447d4fee9e4b4 Mon Sep 17 00:00:00 2001 From: t0m1o1 <94725994+t0m1o1@users.noreply.github.com> Date: Sat, 20 Nov 2021 05:00:52 +0000 Subject: [PATCH 2/3] Update ChangeLog --- apps/swiperclocklaunch/ChangeLog | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/apps/swiperclocklaunch/ChangeLog b/apps/swiperclocklaunch/ChangeLog index 2286a7f70..db50287dc 100644 --- a/apps/swiperclocklaunch/ChangeLog +++ b/apps/swiperclocklaunch/ChangeLog @@ -1 +1,2 @@ -0.01: New App! \ No newline at end of file +0.01: New App! +0.02: Fix issue with mode being undefined, marked app as working for Bangle.js 2 From 7d37a9eba979987d47360ab1c0bc91f808c8cfae Mon Sep 17 00:00:00 2001 From: t0m1o1 <94725994+t0m1o1@users.noreply.github.com> Date: Sat, 20 Nov 2021 05:02:08 +0000 Subject: [PATCH 3/3] Update ChangeLog --- apps/swiperclocklaunch/ChangeLog | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/apps/swiperclocklaunch/ChangeLog b/apps/swiperclocklaunch/ChangeLog index db50287dc..c1b4a5fbb 100644 --- a/apps/swiperclocklaunch/ChangeLog +++ b/apps/swiperclocklaunch/ChangeLog @@ -1,2 +1,2 @@ 0.01: New App! -0.02: Fix issue with mode being undefined, marked app as working for Bangle.js 2 +0.02: Fix issue with mode being undefined