This is an automated email from the ASF dual-hosted git repository.

sebb pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/incubator-ponymail-foal.git

commit 1cc461d104b8976136d7c0ea1b503d30a740aa9c
Author: Sebb <[email protected]>
AuthorDate: Sat Nov 20 00:59:45 2021 +0000

    Don't use regular params after default ones
    
    There seems little point to the default, so drop it
---
 webui/js/source/swipe.js | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/webui/js/source/swipe.js b/webui/js/source/swipe.js
index 67097d9..79ad5af 100644
--- a/webui/js/source/swipe.js
+++ b/webui/js/source/swipe.js
@@ -14,7 +14,7 @@ class SwipeDetector {
         target.addEventListener("touchend", this.touchEnd, false);
     }
 
-    setCallback(direction = "left", callback_function ) {
+    setCallback(direction, callback_function ) {
         document.addEventListener(`swipe${direction}`, callback_function);
     }
 

Reply via email to