mirror of https://github.com/usememos/memos.git
fix: small fixes
This commit is contained in:
parent
e4937b7053
commit
5aa151d0e6
|
|
@ -18,7 +18,7 @@ const MemoYoutubeEmbedListView: React.FC<Props> = ({ videoIds }: Props) => {
|
|||
className="absolute top-0 left-0 w-full h-full"
|
||||
src={`https://www.youtube.com/embed/${videoId}`}
|
||||
title="YouTube video player"
|
||||
allow="accelerometer; encrypted-media; gyroscope; picture-in-picture; web-share"
|
||||
allow="accelerometer; clipboard-write; encrypted-media; gyroscope; picture-in-picture; web-share"
|
||||
allowFullScreen
|
||||
/>
|
||||
</div>
|
||||
|
|
|
|||
|
|
@ -25,7 +25,7 @@ export const extractYoutubeIdFromUrl = (url: string): string | undefined => {
|
|||
|
||||
/**
|
||||
* Extract YouTube video IDs from markdown nodes.
|
||||
* @param nodes The array of markdown nodes to extract YouTube video IDs from .
|
||||
* @param nodes The array of markdown nodes to extract YouTube video IDs from.
|
||||
* @returns A deduplicated array of YouTube video IDs.
|
||||
*/
|
||||
export const extractYoutubeVideoIdsFromNodes = (nodes: Node[]): string[] => {
|
||||
|
|
|
|||
Loading…
Reference in New Issue