Remove unused function proxyVideoUrl
This commit is contained in:
@@ -23,13 +23,6 @@ export function decodeHtmlCharCodes(str: string): string {
|
||||
return decode(str);
|
||||
}
|
||||
|
||||
export function proxyVideoUrl(source: string): string {
|
||||
const rawSrc = new URL(source);
|
||||
rawSrc.host = get(instanceStore).replace('http://', '').replace('https://', '');
|
||||
|
||||
return rawSrc.toString();
|
||||
}
|
||||
|
||||
export function unsafeRandomItem(array: any[]): any {
|
||||
return array[Math.floor(Math.random() * array.length)];
|
||||
}
|
||||
|
||||
@@ -55,7 +55,7 @@ export function phaseDescription(
|
||||
// Handle youtubejs timestamps
|
||||
if (
|
||||
fallbackPatch === 'youtubejs' &&
|
||||
href.includes(`https://www.youtube.com/watch?v=${videoId}&t=`)
|
||||
href.includes(`https://www.youtube.com/watch?v=${videoId}`)
|
||||
) {
|
||||
const url = new URL(href);
|
||||
const timeParam = url.searchParams.get('t') || '0';
|
||||
|
||||
Reference in New Issue
Block a user