mirror of
https://github.com/LBRYFoundation/Watch-on-LBRY.git
synced 2025-08-23 17:47:26 +00:00
Variable name typo fixed
This commit is contained in:
parent
63d91a2ee1
commit
dd16ce1041
1 changed files with 2 additions and 2 deletions
|
@ -51,7 +51,7 @@ export interface SourcePlatfromSettings {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
export const SourcePlatfromettings: Record<SourcePlatfromName, SourcePlatfromSettings> = {
|
export const SourcePlatfromSettings: Record<SourcePlatfromName, SourcePlatfromSettings> = {
|
||||||
"yewtu.be": {
|
"yewtu.be": {
|
||||||
hostnames: ['yewtu.be'],
|
hostnames: ['yewtu.be'],
|
||||||
htmlQueries: {
|
htmlQueries: {
|
||||||
|
@ -69,7 +69,7 @@ export const SourcePlatfromettings: Record<SourcePlatfromName, SourcePlatfromSet
|
||||||
}
|
}
|
||||||
|
|
||||||
export function getSourcePlatfromSettingsFromHostname(hostname: string) {
|
export function getSourcePlatfromSettingsFromHostname(hostname: string) {
|
||||||
const values = Object.values(SourcePlatfromettings)
|
const values = Object.values(SourcePlatfromSettings)
|
||||||
for (const settings of values)
|
for (const settings of values)
|
||||||
if (settings.hostnames.includes(hostname)) return settings
|
if (settings.hostnames.includes(hostname)) return settings
|
||||||
return null
|
return null
|
||||||
|
|
Loading…
Add table
Reference in a new issue