Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/nextcloud/spreed.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDaniel Calviño Sánchez <danxuliu@gmail.com>2020-04-06 22:05:39 +0300
committerDaniel Calviño Sánchez <danxuliu@gmail.com>2020-04-06 22:05:39 +0300
commit51e0ed85d09684a792837b5d9cab6d6d55ec601a (patch)
treeb05b17e57da355e1ef1cfff0529653b28edbf1c4 /lib/PublicShareAuth
parentb9422fd3a048fa6f1b8933813d097e79ca31bcd6 (diff)
Fix missing element for Chromium screensharing extension
In Chromium < 72 an extension is needed to share the screen (https://github.com/nextcloud/spreed-screensharing-chrome-extension). Once installed, the extension enables itself only in those pages that contain an element with id "app" and class "nc-enable-screensharing-extension" when the document is loaded. As the element can not be added after the document has loaded and the screen sharing should work also when Talk is enabled in other apps a (hacky and very likely not compliant) meta element is added in the header element to be found by the extension whenever Talk is used. Signed-off-by: Daniel Calviño Sánchez <danxuliu@gmail.com>
Diffstat (limited to 'lib/PublicShareAuth')
-rw-r--r--lib/PublicShareAuth/TemplateLoader.php3
1 files changed, 3 insertions, 0 deletions
diff --git a/lib/PublicShareAuth/TemplateLoader.php b/lib/PublicShareAuth/TemplateLoader.php
index 26f7e8871..89bfc7654 100644
--- a/lib/PublicShareAuth/TemplateLoader.php
+++ b/lib/PublicShareAuth/TemplateLoader.php
@@ -65,6 +65,9 @@ class TemplateLoader {
Util::addStyle('spreed', 'merged-share-auth');
Util::addScript('spreed', 'talk-public-share-auth-sidebar');
+
+ // Needed to enable the screensharing extension in Chromium < 72.
+ Util::addHeader('meta', ['id' => "app", 'class' => 'nc-enable-screensharing-extension']);
}
}