From aca4a156b8f5de512092d4a630d5475d194f901f Mon Sep 17 00:00:00 2001 From: YouG-o Date: Sat, 15 Feb 2025 16:16:07 +0100 Subject: [PATCH] Fix TypeScript error with currentTitle check Fixes TypeScript error TS2345: Argument of type 'string | undefined' is not assignable to parameter of type 'string' --- src/content/titleTranslation/otherTitles.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/content/titleTranslation/otherTitles.ts b/src/content/titleTranslation/otherTitles.ts index 6f7a7b5..db3aa8e 100644 --- a/src/content/titleTranslation/otherTitles.ts +++ b/src/content/titleTranslation/otherTitles.ts @@ -124,13 +124,13 @@ const otherTitles = document.querySelectorAll('#video-title') as NodeListOf