diff options
author | Mohammad Amoush <mohammad_amoush@brown.edu> | 2019-06-27 12:55:31 -0400 |
---|---|---|
committer | Mohammad Amoush <mohammad_amoush@brown.edu> | 2019-06-27 12:55:31 -0400 |
commit | f31c0d97f9f59371d90d1396469aa9569933fb0d (patch) | |
tree | 5a64328ef6361bda1237e5588db395d698f1f210 /src/client/DocServer.ts | |
parent | 21bc14319013e4757ca24f56a685b7d75eaa259a (diff) |
Youtube Results Showing as List Implemented
Diffstat (limited to 'src/client/DocServer.ts')
-rw-r--r-- | src/client/DocServer.ts | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/client/DocServer.ts b/src/client/DocServer.ts index 65d662ebc..4fb8b8b7b 100644 --- a/src/client/DocServer.ts +++ b/src/client/DocServer.ts @@ -52,8 +52,8 @@ export namespace DocServer { return apiKey; } - export function getYoutubeVideos(videoTitle: string) { - Utils.EmitCallback(_socket, MessageStore.YoutubeApiQuery, { type: YoutubeQueryTypes.SearchVideo, userInput: videoTitle }); + export function getYoutubeVideos(videoTitle: string, callBack: (videos: any[]) => void) { + Utils.EmitCallback(_socket, MessageStore.YoutubeApiQuery, { type: YoutubeQueryTypes.SearchVideo, userInput: videoTitle }, callBack); } |