Merge pull request #3953 from Samueras/release

636ecef28a4bf2ce3b93e585a9f9cde3623732c8

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

Signed
2 files changed, +5 -2Showing whitespace changes
public/script.js+2 -2
@@ -9151,7 +9151,7 @@ function formatSwipeCounter(current, total) {
9151 * @param {string} [params.source] The source of the swipe event.9151 * @param {string} [params.source] The source of the swipe event.
9152 * @param {boolean} [params.repeated] Is the swipe event repeated.9152 * @param {boolean} [params.repeated] Is the swipe event repeated.
9153 */9153 */
9154function swipe_left(_event, { source, repeated } = {}) {9154export function swipe_left(_event, { source, repeated } = {}) {
9155 if (chat.length - 1 === Number(this_edit_mes_id)) {9155 if (chat.length - 1 === Number(this_edit_mes_id)) {
9156 closeMessageEditor();9156 closeMessageEditor();
9157 }9157 }
@@ -9299,7 +9299,7 @@ function swipe_left(_event, { source, repeated } = {}) {
9299 * @param {string} [params.source] The source of the swipe event.9299 * @param {string} [params.source] The source of the swipe event.
9300 * @param {boolean} [params.repeated] Is the swipe event repeated.9300 * @param {boolean} [params.repeated] Is the swipe event repeated.
9301 */9301 */
9302function swipe_right(_event, { source, repeated } = {}) {9302export function swipe_right(_event, { source, repeated } = {}) {
9303 if (chat.length - 1 === Number(this_edit_mes_id)) {9303 if (chat.length - 1 === Number(this_edit_mes_id)) {
9304 closeMessageEditor();9304 closeMessageEditor();
9305 }9305 }
public/scripts/st-context.js+3 -0
@@ -50,6 +50,8 @@ import {
50 unshallowCharacter,50 unshallowCharacter,
51 deleteLastMessage,51 deleteLastMessage,
52 getCharacterCardFields,52 getCharacterCardFields,
53 swipe_right,
54 swipe_left,
53} from '../script.js';55} from '../script.js';
54import {56import {
55 extension_settings,57 extension_settings,
@@ -196,6 +198,7 @@ export function getContext() {
196 humanizedDateTime,198 humanizedDateTime,
197 updateMessageBlock,199 updateMessageBlock,
198 appendMediaToMessage,200 appendMediaToMessage,
201 swipe: { left: swipe_left, right: swipe_right },
199 variables: {202 variables: {
200 local: {203 local: {
201 get: getLocalVariable,204 get: getLocalVariable,