Skip to content

ActivityPub-federated video streaming platform using P2P directly in your web browser

Also fix safari for embed

Chocobozzz2a4c9669d2d6
diff --git a/client/src/standalone/videos/embed.html b/client/src/standalone/videos/embed.html
index e13a4dc248..3455b4aa44 100644
--- a/client/src/standalone/videos/embed.html
+++ b/client/src/standalone/videos/embed.html
@@ -6,6 +6,18 @@
<meta name="robots" content="noindex">
<meta property="og:platform" content="PeerTube" />
+ <script type="text/javascript">
+ // Thanks: https://mathiasbynens.be/notes/globalthis
+ (function() {
+ if (typeof globalThis === 'object') return;
+ Object.prototype.__defineGetter__('__magic__', function() {
+ return this;
+ });
+ __magic__.globalThis = __magic__
+ delete Object.prototype.__magic__;
+ }());
+ </script>
+
<!-- /!\ The following comment is used by the server to prerender some tags /!\ -->