Skip to content

Commit

Permalink
fix(extension-youtube): set allowFullscreen to default
Browse files Browse the repository at this point in the history
  • Loading branch information
bdbch committed Nov 4, 2022
1 parent 5fa9be9 commit 4841c05
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion packages/extension-youtube/src/utils.ts
Original file line number Diff line number Diff line change
Expand Up @@ -78,7 +78,7 @@ export const getEmbedURLFromYoutubeURL = (options: GetEmbedUrlOptions) => {

const params = []

if (!allowFullscreen) {
if (allowFullscreen === false) {
params.push('fs=0')
}

Expand Down
2 changes: 1 addition & 1 deletion packages/extension-youtube/src/youtube.ts
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ export const Youtube = Node.create<YoutubeOptions>({
addOptions() {
return {
addPasteHandler: true,
allowFullscreen: false,
allowFullscreen: true,
autoplay: false,
ccLanguage: undefined,
ccLoadPolicy: undefined,
Expand Down

0 comments on commit 4841c05

Please sign in to comment.