From 400d79bc9c338662c54f8d79a41ebc6cc23df7bc Mon Sep 17 00:00:00 2001 From: Hans Date: Thu, 2 Dec 2021 14:15:59 +0100 Subject: [PATCH] Make stream.py BBB2.4 compatible while staying backwards compatible --- stream.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/stream.py b/stream.py index dafd7bf..d569e61 100644 --- a/stream.py +++ b/stream.py @@ -187,7 +187,10 @@ def bbb_browser(): browser.execute_script("document.querySelector('[aria-label=\"Users and messages toggle with new message notification\"]').style.display='none';") browser.execute_script("document.querySelector('[aria-label=\"Options\"]').style.display='none';") browser.execute_script("document.querySelector('[aria-label=\"Actions bar\"]').style.display='none';") - browser.execute_script("document.getElementById('container').setAttribute('style','margin-bottom:30px');") + try: + browser.execute_script("document.getElementById('container').setAttribute('style','margin-bottom:30px');") + except JavascriptException: + browser.execute_script("document.getElementById('app').setAttribute('style','margin-bottom:30px');") def create_meeting(): create_params = {}