From 8f88dbebe7fa2872c865da661dc741afcf263d5a Mon Sep 17 00:00:00 2001 From: Shiba <44804845+DeepDoge@users.noreply.github.com> Date: Mon, 25 Jul 2022 21:44:14 +0000 Subject: [PATCH] =?UTF-8?q?=F0=9F=8D=99=20little=20bug=20fix?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/scripts/ytContent.tsx | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/src/scripts/ytContent.tsx b/src/scripts/ytContent.tsx index bc8e9e6..65c2b5f 100644 --- a/src/scripts/ytContent.tsx +++ b/src/scripts/ytContent.tsx @@ -174,7 +174,7 @@ import { getExtensionSettingsAsync, getSourcePlatfromSettingsFromHostname, getTa const params: Parameters[0] = sources.map((source) => ({ id: source.id, type: source.type })) const platform = targetPlatformSettings[settings.targetPlatform] - const results = await requestResolveById(params) + const results = await requestResolveById(params) ?? [] const targets: Record = Object.fromEntries( sources.map((source) => { const result = results[source.id] @@ -259,8 +259,6 @@ import { getExtensionSettingsAsync, getSourcePlatfromSettingsFromHostname, getTa document.querySelector(source.platform.htmlQueries.videoDescription) : source.platform.htmlQueries.channelLinks ? document.querySelector(source.platform.htmlQueries.channelLinks) : null - console.log(linksContainer) - if (linksContainer) { const anchors = Array.from(linksContainer.querySelectorAll('a'))