From 3e3abf36e5a17bcef124e9885f0a864a641d0035 Mon Sep 17 00:00:00 2001 From: Ajay Date: Tue, 17 May 2022 22:39:49 -0400 Subject: [PATCH] Fix unsafe navigation --- src/content.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/content.ts b/src/content.ts index aa225ac7..b2f25194 100644 --- a/src/content.ts +++ b/src/content.ts @@ -1125,7 +1125,7 @@ async function whitelistCheck() { ?? document.querySelector("a.ytp-title-channel-logo") // YouTube Embed ?? document.querySelector(".channel-profile #channel-name")?.parentElement.parentElement // Invidious ?? document.querySelector("a.slim-owner-icon-and-title")) // Mobile YouTube - ?.getAttribute("href")?.match(/\/channel\/(UC[a-zA-Z0-9_-]{22})/)[1]; + ?.getAttribute("href")?.match(/\/channel\/(UC[a-zA-Z0-9_-]{22})/)?.[1]; try { await utils.wait(() => !!getChannelID(), 6000, 20);