diff options
| author | bob <bcz@cs.brown.edu> | 2019-07-16 14:53:25 -0400 |
|---|---|---|
| committer | bob <bcz@cs.brown.edu> | 2019-07-16 14:53:25 -0400 |
| commit | bef7fc20fecf4056a4f8ff47ff593b2df5e329af (patch) | |
| tree | 7986efad61f810a366bc45438f2ee8eb20cda260 /src/client/views/collections/CollectionSubView.tsx | |
| parent | 1efa3f098bf76b69f15bd0fbba5532afde322bf0 (diff) | |
cleaned up and conquered video boxes.
Diffstat (limited to 'src/client/views/collections/CollectionSubView.tsx')
| -rw-r--r-- | src/client/views/collections/CollectionSubView.tsx | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/client/views/collections/CollectionSubView.tsx b/src/client/views/collections/CollectionSubView.tsx index 71f1908f0..8e8d5708b 100644 --- a/src/client/views/collections/CollectionSubView.tsx +++ b/src/client/views/collections/CollectionSubView.tsx @@ -179,8 +179,8 @@ export function CollectionSubView<T>(schemaCtor: (doc: Doc) => T) { } } if (text && text.indexOf("www.youtube.com/watch") !== -1) { - const url = text.replace("youtube.com/watch?v=", "youtube.com/embed/");// + "?enablejsapi=1"; - this.props.addDocument(Docs.Create.VideoDocument(url, { ...options, width: 400, height: 315 })); + const url = text.replace("youtube.com/watch?v=", "youtube.com/embed/"); + this.props.addDocument(Docs.Create.VideoDocument(url, { ...options, title: url, width: 400, height: 315 })); return; } |
