Skip to content

Commit

Permalink
fix: remove picture-in-picture from youtube iframe for security reason
Browse files Browse the repository at this point in the history
  • Loading branch information
tiensonqin committed Mar 17, 2021
1 parent 11ee002 commit c6975bf
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions src/main/frontend/components/block.cljs
Original file line number Diff line number Diff line change
Expand Up @@ -804,7 +804,7 @@
[:iframe
{:allow-full-screen "allowfullscreen"
:allow
"accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture"
"accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope"
:frame-border "0"
:src (str "https://www.youtube.com/embed/" youtube-id)
:height height
Expand All @@ -821,7 +821,7 @@
[:iframe
{:allow-full-screen "allowfullscreen"
:allow
"accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture"
"accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope"
:frame-border "0"
:src (str "https://player.vimeo.com/video/" vimeo-id)
:height height
Expand Down
2 changes: 1 addition & 1 deletion src/main/frontend/dicts.cljs
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ some changes on the right sidebar, those referenced blocks will be changed too!
[:iframe
{:allowFullScreen \"allowfullscreen\"
:allow
\"accelerometer; autoplay; encrypted-media; gyroscope; picture-in-picture\"
\"accelerometer; autoplay; encrypted-media; gyroscope\"
:frameBorder \"0\"
:src \"https://www.youtube.com/embed/Afmqowr0qEQ\"
:height \"367\"
Expand Down

0 comments on commit c6975bf

Please sign in to comment.