Fixes to channel pfp not loading when using yt backend.
This commit is contained in:
@@ -53,10 +53,10 @@ export function getBestThumbnail(
|
||||
}
|
||||
|
||||
export function proxyGoogleImage(source: string): string {
|
||||
if (isYTBackend()) return source;
|
||||
|
||||
if (source.startsWith('//')) source = `https:${source}`;
|
||||
|
||||
if (isYTBackend()) return source;
|
||||
|
||||
let path: string | undefined;
|
||||
try {
|
||||
path = new URL(source).pathname;
|
||||
|
||||
Reference in New Issue
Block a user