Variable name typo fixed

This commit is contained in:
Shiba 2021-12-19 01:58:14 +03:00
parent 63d91a2ee1
commit dd16ce1041

View file

@ -51,7 +51,7 @@ export interface SourcePlatfromSettings {
}
}
export const SourcePlatfromettings: Record<SourcePlatfromName, SourcePlatfromSettings> = {
export const SourcePlatfromSettings: Record<SourcePlatfromName, SourcePlatfromSettings> = {
"yewtu.be": {
hostnames: ['yewtu.be'],
htmlQueries: {
@ -69,7 +69,7 @@ export const SourcePlatfromettings: Record<SourcePlatfromName, SourcePlatfromSet
}
export function getSourcePlatfromSettingsFromHostname(hostname: string) {
const values = Object.values(SourcePlatfromettings)
const values = Object.values(SourcePlatfromSettings)
for (const settings of values)
if (settings.hostnames.includes(hostname)) return settings
return null