mirror of
https://github.com/tubearchivist/browser-extension.git
synced 2025-03-12 16:40:14 +00:00
fix channel name lookup
This commit is contained in:
parent
c867da85f5
commit
5f53ae52d6
@ -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;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user