diff --git a/src/libpoketube/init/pages-channel-and-download.js b/src/libpoketube/init/pages-channel-and-download.js index 77cf3c5c..5f8820fb 100644 --- a/src/libpoketube/init/pages-channel-and-download.js +++ b/src/libpoketube/init/pages-channel-and-download.js @@ -262,10 +262,12 @@ const streamUrl = ChannelTabs.streams ? `${apiUrl}${ID}/${atob(ChannelTabs.strea const communityUrl = ChannelTabs.community ? `${apiUrl}${atob(ChannelTabs.community)}/${ID}/?hl=en-US` : null; const PlaylistUrl = ChannelTabs.playlist ? `${apiUrl}${atob(ChannelTabs.playlist)}/${ID}/?hl=en-US` : null; + const fetchData = async (url) => { - return url ? getChannelData(url) : null; + return url ? getChannelData(url) : ""; }; + var [tj, shorts, playlist, stream, c] = await Promise.all([ fetchData(channelUrl), fetchData(shortsUrl),