]> git.immae.eu Git - github/Chocobozzz/PeerTube.git/commitdiff
Also fix safari for embed
authorChocobozzz <me@florianbigard.com>
Wed, 1 Sep 2021 09:56:12 +0000 (11:56 +0200)
committerChocobozzz <me@florianbigard.com>
Wed, 1 Sep 2021 09:56:12 +0000 (11:56 +0200)
client/src/standalone/videos/embed.html

index e13a4dc2481bd9f28165e3a42d7882ca9c702428..3455b4aa44d2469368573ed2714a10d9535249ab 100644 (file)
@@ -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 /!\ -->