diff options
author | Chocobozzz <me@florianbigard.com> | 2021-10-08 11:57:39 +0200 |
---|---|---|
committer | Chocobozzz <me@florianbigard.com> | 2021-10-08 11:57:39 +0200 |
commit | dd0ad8dfa5a4cdab066602668ed182cb45098e10 (patch) | |
tree | 070fd31a91f3ba910a6b7b5c99c46fa783630a28 /client/src/standalone | |
parent | 8e7442d0d818ef25240b46dd1115187c7c042a3a (diff) | |
download | PeerTube-dd0ad8dfa5a4cdab066602668ed182cb45098e10.tar.gz PeerTube-dd0ad8dfa5a4cdab066602668ed182cb45098e10.tar.zst PeerTube-dd0ad8dfa5a4cdab066602668ed182cb45098e10.zip |
Fix local/session storage polyfill
Diffstat (limited to 'client/src/standalone')
-rw-r--r-- | client/src/standalone/videos/test-embed.ts | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/client/src/standalone/videos/test-embed.ts b/client/src/standalone/videos/test-embed.ts index 301c95d7b..a28a83cc1 100644 --- a/client/src/standalone/videos/test-embed.ts +++ b/client/src/standalone/videos/test-embed.ts | |||
@@ -15,6 +15,8 @@ window.addEventListener('load', async () => { | |||
15 | ? `/video-playlists/embed/${elementId}?api=1` | 15 | ? `/video-playlists/embed/${elementId}?api=1` |
16 | : `/videos/embed/${elementId}?api=1` | 16 | : `/videos/embed/${elementId}?api=1` |
17 | 17 | ||
18 | iframe.sandbox.add('allow-same-origin', 'allow-scripts', 'allow-popups') | ||
19 | |||
18 | const mainElement = document.querySelector('#host') | 20 | const mainElement = document.querySelector('#host') |
19 | mainElement.appendChild(iframe) | 21 | mainElement.appendChild(iframe) |
20 | 22 | ||