From 7e3f6f030680a8cf7b5baa3ce6f33acd5766fca8 Mon Sep 17 00:00:00 2001 From: Paul Frazee Date: Thu, 26 Jan 2023 11:25:52 -0600 Subject: Fix all type errors --- src/lib/extractHtmlMeta.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/lib/extractHtmlMeta.ts') diff --git a/src/lib/extractHtmlMeta.ts b/src/lib/extractHtmlMeta.ts index 038ca81c6..70387f71d 100644 --- a/src/lib/extractHtmlMeta.ts +++ b/src/lib/extractHtmlMeta.ts @@ -63,7 +63,7 @@ export const extractHtmlMeta = ({ // Workaround for some websites not having a title or description in the meta tags in the initial serve if (isYoutubeUrl) { res = {...res, ...extractYoutubeMeta(html)} - } else if (isTwitterUrl) { + } else if (isTwitterUrl && pathname) { res = {...extractTwitterMeta({pathname})} } -- cgit 1.4.1