Merge pull request #3953 from Samueras/release

636ecef28a4bf2ce3b93e585a9f9cde3623732c8

Cohee <18619528+Cohee1207@users.noreply.github.com>

Signed
2 files changed, +5 -2Ignore whitespace
public/script.js+2 -2
@@ -9151,7 +9151,7 @@ function formatSwipeCounter(current, total) {
91519151 * @param {string} [params.source] The source of the swipe event.
91529152 * @param {boolean} [params.repeated] Is the swipe event repeated.
91539153 */
91549154export function swipe_left(_event, { source, repeated } = {}) {
91559155 if (chat.length - 1 === Number(this_edit_mes_id)) {
91569156 closeMessageEditor();
91579157 }
@@ -9299,7 +9299,7 @@ function swipe_left(_event, { source, repeated } = {}) {
92999299 * @param {string} [params.source] The source of the swipe event.
93009300 * @param {boolean} [params.repeated] Is the swipe event repeated.
93019301 */
93029302export function swipe_right(_event, { source, repeated } = {}) {
93039303 if (chat.length - 1 === Number(this_edit_mes_id)) {
93049304 closeMessageEditor();
93059305 }
public/scripts/st-context.js+3 -0
@@ -50,6 +50,8 @@ import {
5050 unshallowCharacter,
5151 deleteLastMessage,
5252 getCharacterCardFields,
53+ swipe_right,
54+ swipe_left,
5355} from '../script.js';
5456import {
5557 extension_settings,
@@ -196,6 +198,7 @@ export function getContext() {
196198 humanizedDateTime,
197199 updateMessageBlock,
198200 appendMediaToMessage,
201+ swipe: { left: swipe_left, right: swipe_right },
199202 variables: {
200203 local: {
201204 get: getLocalVariable,