diff options
| author | Bob Zeleznik <zzzman@gmail.com> | 2020-06-30 09:46:49 -0400 |
|---|---|---|
| committer | Bob Zeleznik <zzzman@gmail.com> | 2020-06-30 09:46:49 -0400 |
| commit | 623a1804a16ea625d373ac413194a780c5c1f17e (patch) | |
| tree | 9c8bc09e7d607f27b726ca56d361617253036260 /src/client/views/collections/CollectionSubView.tsx | |
| parent | eb8399d057089a7b90d756fc69df096becad9a7f (diff) | |
trying to get Youtube player to work better.
Diffstat (limited to 'src/client/views/collections/CollectionSubView.tsx')
| -rw-r--r-- | src/client/views/collections/CollectionSubView.tsx | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/client/views/collections/CollectionSubView.tsx b/src/client/views/collections/CollectionSubView.tsx index f39c1ae28..d107db86b 100644 --- a/src/client/views/collections/CollectionSubView.tsx +++ b/src/client/views/collections/CollectionSubView.tsx @@ -358,7 +358,7 @@ export function CollectionSubView<T, X>(schemaCtor: (doc: Doc) => T, moreProps?: } if (text) { - if (text.includes("www.youtube.com/watch")) { + if (text.includes("www.youtube.com/watch") || text.includes("www.youtube.com/embed")) { const url = text.replace("youtube.com/watch?v=", "youtube.com/embed/").split("&")[0]; addDocument(Docs.Create.VideoDocument(url, { ...options, |
