From 99f47de88b7f86b14ed880add5bb766a4db70ed1 Mon Sep 17 00:00:00 2001 From: Samueras Date: Sun, 4 May 2025 18:15:28 +0200 Subject: [PATCH] Export Swipe left and right Exporting the swipe_left and the swipe_right functions --- public/script.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/public/script.js b/public/script.js index 9f948bb32..c75d52e9c 100644 --- a/public/script.js +++ b/public/script.js @@ -9105,7 +9105,7 @@ function formatSwipeCounter(current, total) { * @param {string} [params.source] The source of the swipe event. * @param {boolean} [params.repeated] Is the swipe event repeated. */ -function swipe_left(_event, { source, repeated } = {}) { +export function swipe_left(_event, { source, repeated } = {}) { if (chat.length - 1 === Number(this_edit_mes_id)) { closeMessageEditor(); } @@ -9253,7 +9253,7 @@ function swipe_left(_event, { source, repeated } = {}) { * @param {string} [params.source] The source of the swipe event. * @param {boolean} [params.repeated] Is the swipe event repeated. */ -function swipe_right(_event, { source, repeated } = {}) { +export function swipe_right(_event, { source, repeated } = {}) { if (chat.length - 1 === Number(this_edit_mes_id)) { closeMessageEditor(); }