diff options
author | Chocobozzz <me@florianbigard.com> | 2021-09-01 11:56:12 +0200 |
---|---|---|
committer | Chocobozzz <me@florianbigard.com> | 2021-09-01 11:56:12 +0200 |
commit | 2a4c9669d2d6ac6cd4ae43544698f826ae98080f (patch) | |
tree | a2376bfa411ab610202fe8d5f792df45ab6b28af /client | |
parent | ef44710bb069a73be36cbb00a6173d7502eaf0b5 (diff) | |
download | PeerTube-2a4c9669d2d6ac6cd4ae43544698f826ae98080f.tar.gz PeerTube-2a4c9669d2d6ac6cd4ae43544698f826ae98080f.tar.zst PeerTube-2a4c9669d2d6ac6cd4ae43544698f826ae98080f.zip |
Also fix safari for embed
Diffstat (limited to 'client')
-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 | ||