diff options
author | Ajay <[email protected]> | 2022-05-17 22:39:49 -0400 |
---|---|---|
committer | Ajay <[email protected]> | 2022-05-17 22:39:49 -0400 |
commit | 3e3abf36e5a17bcef124e9885f0a864a641d0035 (patch) | |
tree | accfc332d4b65ec52b1e83006eb28cdb14000782 | |
parent | 393861dcd335dfa3a174a235135e503360e809f8 (diff) | |
download | SponsorBlock-3e3abf36e5a17bcef124e9885f0a864a641d0035.tar.gz SponsorBlock-3e3abf36e5a17bcef124e9885f0a864a641d0035.zip |
Fix unsafe navigation
-rw-r--r-- | src/content.ts | 2 |
1 files changed, 1 insertions, 1 deletions
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); |