diff options
author | Chocobozzz <me@florianbigard.com> | 2019-12-27 13:04:36 +0100 |
---|---|---|
committer | Chocobozzz <me@florianbigard.com> | 2019-12-27 13:04:36 +0100 |
commit | f2aa2c3cca2433d89ba80b1c2b64ea6c4b95fe66 (patch) | |
tree | e60fe63117adaa12f1be5492b14e0cb4942ffec1 | |
parent | 0a9131f9615e0aa26ec26c1739fce3aca9fca43f (diff) | |
download | PeerTube-f2aa2c3cca2433d89ba80b1c2b64ea6c4b95fe66.tar.gz PeerTube-f2aa2c3cca2433d89ba80b1c2b64ea6c4b95fe66.tar.zst PeerTube-f2aa2c3cca2433d89ba80b1c2b64ea6c4b95fe66.zip |
Allow iframes to open links
-rw-r--r-- | client/src/assets/player/utils.ts | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/client/src/assets/player/utils.ts b/client/src/assets/player/utils.ts index 629634985..38f2482eb 100644 --- a/client/src/assets/player/utils.ts +++ b/client/src/assets/player/utils.ts | |||
@@ -124,7 +124,7 @@ function secondsToTime (seconds: number, full = false, symbol?: string) { | |||
124 | 124 | ||
125 | function buildVideoEmbed (embedUrl: string) { | 125 | function buildVideoEmbed (embedUrl: string) { |
126 | return '<iframe width="560" height="315" ' + | 126 | return '<iframe width="560" height="315" ' + |
127 | 'sandbox="allow-same-origin allow-scripts" ' + | 127 | 'sandbox="allow-same-origin allow-scripts allow-popups" ' + |
128 | 'src="' + embedUrl + '" ' + | 128 | 'src="' + embedUrl + '" ' + |
129 | 'frameborder="0" allowfullscreen>' + | 129 | 'frameborder="0" allowfullscreen>' + |
130 | '</iframe>' | 130 | '</iframe>' |