Merge pull request #82 from LBRYFoundation/1.7.6

1.7.6
This commit is contained in:
kodxana 2022-01-07 21:55:12 +01:00 committed by GitHub
commit a671df51a0
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -23,8 +23,7 @@ async function ctxFromURL(href: string): Promise<UpdateContext | void> {
const url = new URL(href);
if (!getSourcePlatfromSettingsFromHostname(url.hostname)) return
if (url.pathname.startsWith('/watch?')) return
if (url.pathname.startsWith('/channel?')) return
if (!(url.pathname.startsWith('/watch') || url.pathname.startsWith('/channel'))) return
const { redirect, targetPlatform } = await getExtensionSettingsAsync('redirect', 'targetPlatform');
const descriptor = ytService.getId(href);