From 853c99e8891c0ad1ca93f4d963ecf04dbc246489 Mon Sep 17 00:00:00 2001 From: thyttan <6uuxstm66@mozmail.com⁩> Date: Sun, 5 Feb 2023 14:25:37 +0100 Subject: [PATCH] check for NOT more than one swipe handler --- apps/backswipe/boot.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/apps/backswipe/boot.js b/apps/backswipe/boot.js index 31b277620..12910fbb5 100644 --- a/apps/backswipe/boot.js +++ b/apps/backswipe/boot.js @@ -16,7 +16,7 @@ var currentFile = global.__FILE__ || ""; if (global.BACK) delete global.BACK; - if (options && options.back && enabledForApp(currentFile) && (Bangle["#onswipe"] instanceof Array)&&Bangle["#onswipe"].length>1 ) { + if (options && options.back && enabledForApp(currentFile) && !((Bangle["#onswipe"] instanceof Array)&&Bangle["#onswipe"].length>1 )) { global.BACK = options.back; } setUI(mode, cb);