From 027fb5b49502ea810bfe29567b0728f2f9581992 Mon Sep 17 00:00:00 2001 From: Sacha Chua Date: Tue, 12 Dec 2023 14:43:45 -0500 Subject: add spookfox wait until --- emacsconf-spookfox.el | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/emacsconf-spookfox.el b/emacsconf-spookfox.el index c712821..8b89282 100644 --- a/emacsconf-spookfox.el +++ b/emacsconf-spookfox.el @@ -118,5 +118,11 @@ document.querySelector('.create-room-button').click();" "document.querySelector('button.create-room-button[data-dismiss=\"modal\"]').click()" t) (sleep-for 1)))) + +(defun emacsconf-spookfox-wait-until (condition) + (while (member (spookfox-js-injection-eval-in-active-tab condition t) + '(:null :false)) + (sit-for 1))) + (provide 'emacsconf-spookfox) ;;; emacsconf-spookfox.el ends here -- cgit v1.2.3