From 5f53ae52d6a06e3c18919bfef27e54fdc39ff0d1 Mon Sep 17 00:00:00 2001 From: Simon Date: Sun, 9 Mar 2025 21:58:28 +0700 Subject: [PATCH] fix channel name lookup --- extension/background.js | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/extension/background.js b/extension/background.js index 1379530..34f1ee9 100644 --- a/extension/background.js +++ b/extension/background.js @@ -144,11 +144,9 @@ async function videoExists(id) { } async function getChannel(channelHandle) { - let channel; const path = `api/channel/search/?q=${channelHandle}`; try { - channel = await sendGet(path); - return channel.data; + return await sendGet(path); } catch { return false; }