diff --git a/ts/card-info/index.ts b/ts/card-info/index.ts index c6e29bcbb..a30a2cbfe 100644 --- a/ts/card-info/index.ts +++ b/ts/card-info/index.ts @@ -11,11 +11,14 @@ const i18n = setupI18n({ modules: [ModuleName.CARD_STATS, ModuleName.SCHEDULING, ModuleName.STATISTICS], }); -export async function setupCardInfo(target: HTMLElement): Promise { +export async function setupCardInfo( + target: HTMLElement, + props = {}, +): Promise { checkNightMode(); await i18n; - return new CardInfo({ target, props: {} }); + return new CardInfo({ target, props }); } if (window.location.hash.startsWith("#test")) {