diff options
Diffstat (limited to 'client/src/standalone/videos/embed.html')
-rw-r--r-- | client/src/standalone/videos/embed.html | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/client/src/standalone/videos/embed.html b/client/src/standalone/videos/embed.html index e13a4dc24..3455b4aa4 100644 --- a/client/src/standalone/videos/embed.html +++ b/client/src/standalone/videos/embed.html | |||
@@ -6,6 +6,18 @@ | |||
6 | <meta name="robots" content="noindex"> | 6 | <meta name="robots" content="noindex"> |
7 | <meta property="og:platform" content="PeerTube" /> | 7 | <meta property="og:platform" content="PeerTube" /> |
8 | 8 | ||
9 | <script type="text/javascript"> | ||
10 | // Thanks: https://mathiasbynens.be/notes/globalthis | ||
11 | (function() { | ||
12 | if (typeof globalThis === 'object') return; | ||
13 | Object.prototype.__defineGetter__('__magic__', function() { | ||
14 | return this; | ||
15 | }); | ||
16 | __magic__.globalThis = __magic__ | ||
17 | delete Object.prototype.__magic__; | ||
18 | }()); | ||
19 | </script> | ||
20 | |||
9 | 21 | ||
10 | <!-- /!\ The following comment is used by the server to prerender some tags /!\ --> | 22 | <!-- /!\ The following comment is used by the server to prerender some tags /!\ --> |
11 | 23 | ||