Skip to content

Commit 44543e4

Browse files
committed
Fix CoverTheme coverUrl args
1 parent 6818419 commit 44543e4

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

plugins/CoverTheme/src/index.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ import { getPalette, type Palette, type RGBSwatch } from "./vibrant.native";
1111

1212
const cachePalette = async (mediaItem?: MediaItem): Promise<Palette | undefined> => {
1313
if (mediaItem === undefined) return;
14-
const coverUrl = await mediaItem.coverUrl("640");
14+
const coverUrl = await mediaItem.coverUrl({ res: "640" });
1515
if (coverUrl === undefined) return;
1616
return await storage.ensure<Palette>(`palette_v2.${coverUrl}`, () => getPalette(coverUrl));
1717
};

0 commit comments

Comments
 (0)