mirror of
https://github.com/LBRYFoundation/Watch-on-LBRY.git
synced 2025-08-23 17:47:26 +00:00
🥡bug fix
- ctxFromUrl pathname check fixed
This commit is contained in:
parent
75274005ee
commit
2b3d43e0dc
1 changed files with 1 additions and 2 deletions
|
@ -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);
|
||||
|
|
Loading…
Add table
Reference in a new issue