From 25d4b2f4454e1467b7a90cced3fc6a3cf90d11c6 Mon Sep 17 00:00:00 2001 From: Leandro Solidum Date: Mon, 27 Jan 2025 19:49:31 -0800 Subject: [PATCH] add undo and confirm commands for daily chess --- app/src/commands.ts | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/app/src/commands.ts b/app/src/commands.ts index 5470d58..9ab68bd 100644 --- a/app/src/commands.ts +++ b/app/src/commands.ts @@ -19,6 +19,14 @@ export const commands : Record void> = { const drawButton = >document.querySelector('.draw-button-component'); drawButton && drawButton.click(); }, + cancel: () => { + const cancelButton = >document.querySelector('.daily-confirm-move-buttons .cc-button-secondary') + cancelButton && cancelButton.click() + }, + confirm: () => { + const confirmButton = >document.querySelector('.daily-confirm-move-buttons .cc-button-primary') + confirmButton && confirmButton.click() + } }; /**