From 29b29e3f6e817f8cce2ccc2c9177ccc2779c2ddd Mon Sep 17 00:00:00 2001 From: Ajay Ramachandran Date: Fri, 11 Jun 2021 17:55:24 -0400 Subject: [PATCH] Add type to getYouTubeVideoID --- src/content.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/content.ts b/src/content.ts index 6ce82711..ac517c72 100644 --- a/src/content.ts +++ b/src/content.ts @@ -735,7 +735,7 @@ async function getVideoInfo(): Promise { } } -function getYouTubeVideoID(url: string) { +function getYouTubeVideoID(url: string): string | boolean { // For YouTube TV support if(url.startsWith("https://www.youtube.com/tv#/")) url = url.replace("#", "");