summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorSacha Chua <sacha@sachachua.com>2023-12-12 14:43:45 -0500
committerSacha Chua <sacha@sachachua.com>2023-12-12 14:43:45 -0500
commit027fb5b49502ea810bfe29567b0728f2f9581992 (patch)
tree7bb0059a1f59502c3446277f698eb64ca95dfc6b
parentf9878c8f9e91b668981ce8c945dfd0169b557922 (diff)
downloademacsconf-el-027fb5b49502ea810bfe29567b0728f2f9581992.tar.xz
emacsconf-el-027fb5b49502ea810bfe29567b0728f2f9581992.zip
add spookfox wait until
-rw-r--r--emacsconf-spookfox.el6
1 files changed, 6 insertions, 0 deletions
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