getContext: export showSwipeButtons/hideSwipeButtons

59a80fb0a014f4b982e8e4482915a7810fbd9d32

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

1 files changed, +8 -1Ignore whitespace
public/scripts/st-context.js+8 -1
@@ -53,6 +53,8 @@ import {
5353 swipe_right,
5454 swipe_left,
5555 generateRaw,
56+ showSwipeButtons,
57+ hideSwipeButtons,
5658} from '../script.js';
5759import {
5860 extension_settings,
@@ -203,7 +205,12 @@ export function getContext() {
203205 humanizedDateTime,
204206 updateMessageBlock,
205207 appendMediaToMessage,
206- swipe: { left: swipe_left, right: swipe_right },
208+ swipe: {
209+ left: swipe_left,
210+ right: swipe_right,
211+ show: showSwipeButtons,
212+ hide: hideSwipeButtons,
213+ },
207214 variables: {
208215 local: {
209216 get: getLocalVariable,