diff --git a/src/common/settings.ts b/src/common/settings.ts index c69c832..6ec75f3 100644 --- a/src/common/settings.ts +++ b/src/common/settings.ts @@ -73,8 +73,8 @@ export const getTargetPlatfromSettingsEntiries = () => -export type SourcePlatfromName = 'youtube.com' | 'yewtu.be' -export interface SourcePlatfrom +export type SourcePlatformName = 'youtube.com' | 'yewtu.be' +export interface SourcePlatform { hostnames: string[] htmlQueries: { @@ -83,7 +83,7 @@ export interface SourcePlatfrom } } -export const sourcePlatfromSettings: Record = { +export const sourcePlatfromSettings: Record = { "yewtu.be": { hostnames: ['yewtu.be'], htmlQueries: { diff --git a/src/scripts/ytContent.tsx b/src/scripts/ytContent.tsx index 2fc8ece..c08315a 100644 --- a/src/scripts/ytContent.tsx +++ b/src/scripts/ytContent.tsx @@ -126,7 +126,7 @@ window.addEventListener('load', async () => // Listen URL Change chrome.runtime.onMessage.addListener(onUrlChange) - // We should get this from background, so the caching works and we don't get erros in the future if yt decides to impliment CORS + // We should get this from background, so the caching works and we don't get errors in the future if yt decides to impliment CORS async function requestLbryPathname(videoId: string) { return await new Promise((resolve) => chrome.runtime.sendMessage({ videoId }, resolve))