Skip to content

Commit

Permalink
etc
Browse files Browse the repository at this point in the history
  • Loading branch information
elringus committed Dec 6, 2023
1 parent abfe52e commit d7d74a7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion docs/.vitepress/imgit/plugin/youtube.ts
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ function build(asset: BuiltAsset): boolean {
}

async function resolveThumbnailUrl(id: string): Promise<string> {
if ((<YouTubeCache>cache).youtube.hasOwnProperty(id))
if ((<YouTubeCache>cache).youtube?.hasOwnProperty(id))
return (<YouTubeCache>cache).youtube[id];
let response: Response;
for (const variant of thumbs)
Expand Down

0 comments on commit d7d74a7

Please sign in to comment.