From 48e6e4a08769cfa98f6353b530ca265839f8e5bf Mon Sep 17 00:00:00 2001 From: dessant Date: Sun, 23 Jun 2024 20:14:08 +0300 Subject: [PATCH] fix: update Reddit Repost Sleuth --- src/engines/repostSleuth.js | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) diff --git a/src/engines/repostSleuth.js b/src/engines/repostSleuth.js index 34e9611..925af50 100644 --- a/src/engines/repostSleuth.js +++ b/src/engines/repostSleuth.js @@ -26,11 +26,12 @@ async function search({session, search, image, storageIds}) { input.dispatchEvent(new Event('input')); } - ( - await findNode('.v-main button.primary:not(.v-btn--disabled)', { - observerOptions: {attributes: true, attributeFilter: ['class']} - }) - ).click(); + const button = await findNode( + '.v-main button.primary:not(.v-btn--disabled)', + {observerOptions: {attributes: true, attributeFilter: ['class']}} + ); + + window.setTimeout(() => button.click(), 300); } function init() {