summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
Diffstat (limited to '')
-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